Assignment 5

a. LED blink

int pinNo=13; // pin number on which LED is connected
int freq=1000; // time interval of LED blink

void setup(){
pinMode(pinNo,OUTPUT); // setting pin as OUTPUT pin
void loop(){
digitalWrite(pinNo, HIGH); // setting pin HIGH- LED will glow
digitalWrite(pinNo, LOW); // seeting pin LOW- LED off

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License