Coding course part-4
Part 4
Code -
void setup() {
pinMode(13,OUTPUT); //we have connected vcc to pin 13 and it is used as output
//we dont define negative terminal we define positive terminal only
}
void loop() {
digitalWrite(13,HIGH); //give electricity to 13
delay(1000); //delay takes time in microseconds 1000ms=1s
digitalWrite(13,LOW); //dont give electricity to 13
delay(1000);
}
PDF-
Comments
Post a Comment