First commit: code tested with Arduino Uno, PC and Carambola.