Etape 6: Télécharger le code.
Code minimal :
[code]
void setup() { Serial.begin(9600); } void loop() { Serial.print("It's working! "); Serial.print("\n"); delay(1000); } [/code]
ou cela devrait fonctionner aussi bien
[code]
/* * Hello World! * * This is the Hello World! for Arduino. * It shows how to send data to the computer */voidsetup() // run once, when the sketch starts { Serial.begin(9600); // set up Serial library at 9600 bps } voidloop() // run over and over again { Serial.println("Hello world!"); // prints hello with ending line break delay(1000); }
[/ code]