pages
compiler
electronics
laboratory
Processing
Theremino
logggin
pulsante
introduction
When you press a button down, it may not make contact to both sides at the exact same moment – in fact, it may make contact on one side – then both – and then the other side – until it finally settles down. This making and breaking contact is called bouncing.
program
algorithm
attrezzaggio
pin11˜ 
_button
pin13 
_led13
variabili
state = 0
previous_state = 255
ciclo
the variable state is equal at the state of the switch: _button
IF HAPPENS THAT
state is equal to HIGH
and even IF state is not equal to previous_state
SWITCH ON (5 Volt)
_led13
IF HAPPENS THAT
state is equal to LOW
and even IF state is not equal to previous_state
SWITCH OFF (0 Volt)
_led13
the variable statoprecedente is equal to state

wait
100 milliseconds
Arduino code
electrical connections