X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=basic%2Fbuttons%2Fbutton_2_serial_debug%2Fbutton_2_serial_debug.ino;h=443b3c18694019eeea32e1a656566d2dec0968e2;hb=f1049e58baf973e21c716ef697458b1384f02b78;hp=f0b41d543cb88b111a22b827b1132811c2017189;hpb=0807dd2a57e859d7fc246d8eb02692ea4d0da248;p=sketchbook_andrea diff --git a/basic/buttons/button_2_serial_debug/button_2_serial_debug.ino b/basic/buttons/button_2_serial_debug/button_2_serial_debug.ino index f0b41d5..443b3c1 100644 --- a/basic/buttons/button_2_serial_debug/button_2_serial_debug.ino +++ b/basic/buttons/button_2_serial_debug/button_2_serial_debug.ino @@ -1,22 +1,19 @@ /* - Input serial + Input serial debug Accensione e spegnimanto di un LED utilizzando un pin come input. - Schemi del circuito: + Schemi del circuito per bottone in pull down: - http://lab.piffa.net/schemi/button_1_bb.png - http://lab.piffa.net/schemi/button_1_schem.png */ -// Pin 13 has an LED connected on most Arduino boards. -// give it a name: -int led = 13; +int led = 12; int input = 2; // the setup routine runs once when you press reset: void setup() { - // initialize the digital pin as an output. pinMode(led, OUTPUT); // Il PIN e' attivato come output pinMode(input, INPUT); // Il PIN e' attivato come output