Stap 6: Upload de code.
Minimaal code:
[code]
void setup() { Serial.begin(9600); } void loop() { Serial.print("It's working! "); Serial.print("\n"); delay(1000); } [/code]
of dit ook zou moeten werken
[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]