Arduino_ Exploration_Mitushi

by
Mitushi

Code in Arduino- 0011 Alpha:

ard1.jpg

int pinNo=13; // pin number on which LED is connected
int freq=100; // 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
delay(freq);
digitalWrite(pinNo, LOW); // seeting pin LOW- LED off
delay(freq);
}

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