that stuff that when you
do it you feel that
your iq gets up
the thing that is so
old but no one knows it
cause programing
is solving problems and coding is
is writing code
wilipedia for even more infohere is show you some of my projects
// initialise the leds const int redLed = 4; const int greenLed = 11; // Initialise the switch pin and its state const int switchpin = 7; int state; void setup() { // put your setup code here, to run once: pinMode(switchpin,INPUT_PULLUP); pinMode(greenLed,OUTPUT); pinMode(redLed,OUTPUT); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: state = digitalRead(switchpin); if (state == HIGH){ digitalWrite(greenLed,HIGH); digitalWrite(redLed,LOW); } else { digitalWrite(greenLed,LOW); digitalWrite(redLed,HIGH); } }
make it from this code