Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a9b41defdb
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (51 sloc) 1.491 kb

SeattleLight

Arduino code for Rebar Group's SeattleLight project - http://rebargroup.org/
by Matt Ganucheau, Mary Franck and Benjamin Chun

Libraries Used:
WiFlyHQ - https://github.com/harlequin-tech/WiFlyHQ
LPD8806 - https://github.com/adafruit/LPD8806

Files:
hub - code for the sequencing hub
planter - code for each planter
lights_com_test - used to test the LPD8806 over serial


Commands for the Planters

Z - Clears the strip
H - Color Chase Mode
W - Color Wipe Mode
C - Rainbow Mode
T - Twinkle Mode
O - Solid Color Mode
M - Screensaver Mode

U - Fades brightness up
D - Fades brightness down

R0 - R9 - sets Red Value
G0 - G9 - sets Green Value
B0 - B9 - sets Blue Value
P0 - P9 - sets Speed
Z0 - Z9 - sets Brightness

S0 - All Sides
S1 - First Side
S2 - Second Side
S3 - Third Side
S4 - Last Side

N1 - First Corner
N2 - Second Corner
N3 - Third Corner
N4 - Last Corner


Example hub code for targeting planters:

count++;
wifly.setHost(unit[count], 2000);
wifly.write("H");

for (int n=1; n<=11; n++) {
 if (n != count) {
   wifly.setHost(unit[n], 2000);
   wifly.write("Z1"); // set brightness to 1
   wifly.write("T");  // set to twinkle mode                        
   wifly.write("U");  // fade up the brightness
 }  
}

if(count > 11)
 count = 1;
Jump to Line
Something went wrong with that request. Please try again.