From fc3dbea7150a2b0e963fbd17368e880e9690188a Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 26 Apr 2021 16:09:15 -0500 Subject: programming instructions --- .../arduino-uno-controller/firmware/firmware.ino | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'digital-controller') diff --git a/digital-controller/arduino-uno-controller/firmware/firmware.ino b/digital-controller/arduino-uno-controller/firmware/firmware.ino index 3735c4a..f90ae05 100644 --- a/digital-controller/arduino-uno-controller/firmware/firmware.ino +++ b/digital-controller/arduino-uno-controller/firmware/firmware.ino @@ -1,3 +1,24 @@ +/* EXAMPLE FIRMWARE + * CONTROLLING WPP DRIVERS FROM ARDUINO UNO + * + * SERIAL INTERFACE + * 9600 baud + * newline terminated (no carriage return) + * space separated commands: + *
+ * + * example: full brightness full speed: + * 38 255 255 + * example: LED off fan full speed: + * 38 0 255 + * example: LED medium fan off + * 38 100 0 + * + * if
0, commands sent to all devices + * + * if
-1, list of addresses seen returned + */ + #include #define INPUT_SIZE 100 // TODO: make this a reasonable value -- cgit v1.2.3