diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-03-22 22:15:22 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-03-22 22:15:22 +0100 |
commit | 4cdf144c41c7b2d3100251e5a47e35f98cb09c30 (patch) | |
tree | 1e32cf43f05be71bea151ee9f4713cc6a7d61053 /Arduino sketch | |
parent | aedc42f9ff57eb7fb456ef6fd9e94c099ff84076 (diff) | |
download | SerialRGB-LED-Arduino-4cdf144c41c7b2d3100251e5a47e35f98cb09c30.tar.gz SerialRGB-LED-Arduino-4cdf144c41c7b2d3100251e5a47e35f98cb09c30.tar.bz2 SerialRGB-LED-Arduino-4cdf144c41c7b2d3100251e5a47e35f98cb09c30.zip |
Added synchronisation with Arduino.
Diffstat (limited to 'Arduino sketch')
-rw-r--r-- | Arduino sketch/serial_rgb.pde | 1 |
1 files changed, 1 insertions, 0 deletions
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); |