-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_light interface.txt
More file actions
33 lines (27 loc) · 1.12 KB
/
build_light interface.txt
File metadata and controls
33 lines (27 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
The build_light Arduino project uses a simple single-character interface. These characters are read
from the Arduino serial port, which is at 115200 baud. Simply open the serial port, and send the
characters described here.
The build_light has a global blink mode. This blink mode defines how build_light will operate
any light that is turned on. The blink mode will be used for all future light activations until
the blink mode is changed. When a light is commanded off, it will remain off until turned on. When
turned on the light will acquire the last commanded blink mode.
Multiple commands can be chained into a single string if desired. They will be processed in the
order they are received.
Light Commands:
A - all lights on
a - all lights off (default at power on)
R - red light on
r - red light off
Y - yellow light on
y - yellow light off
G - green light on
g - green light off
Blink Modes:
f - fast blink mode
m - medium blink mode
s - slow blink mode
n - no blinking (default at power on)
Example, green light constantly on:
anG
Example, blink the red light fast, yellow light slow, send:
afRsY