From 4cdf144c41c7b2d3100251e5a47e35f98cb09c30 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 22 Mar 2011 22:15:22 +0100 Subject: Added synchronisation with Arduino. --- Arduino sketch/serial_rgb.pde | 1 + 1 file changed, 1 insertion(+) (limited to 'Arduino sketch') diff --git a/Arduino sketch/serial_rgb.pde b/Arduino sketch/serial_rgb.pde index 84d331b..f6121a2 100644 --- a/Arduino sketch/serial_rgb.pde +++ b/Arduino sketch/serial_rgb.pde @@ -21,6 +21,7 @@ void loop() r = Serial.read(); g = Serial.read(); b = Serial.read(); + Serial.write('1'); // Sync } analogWrite(LEDR, r); analogWrite(LEDG, g); -- cgit v1.2.3-70-g09d2