//------------------------------------------------------------ //--- Simple example: Arduino sending data to serial port ---- // (-View output using Serial Monitor in Arduino Interface.) //------------------------------------------------------------ void setup() { // Only do once at startup Serial.begin(9600); // start serial port at 9600 bps: } void loop() { // repeat forever Serial.println("0"); // Send message to serial (USB) delay(500); // delay a half second Serial.println("1"); // Send message to serial (USB) delay(500); // delay a half second }