switch

  1. Ahmad Altonji

    Example 2 Blinking with Switch

    //Example_2_Blinking_with_Switch www.altonji.net const int ledPin = 13; const int buttonPin = 2; int val; void setup ( ) { pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT); } void loop() { val = digitalRead(buttonPin)...
أعلى