aboutsummaryrefslogtreecommitdiff
path: root/digital-controller
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2021-04-26 16:09:15 -0500
committerBlaise Thompson <blaise@untzag.com>2021-04-26 16:09:15 -0500
commitfc3dbea7150a2b0e963fbd17368e880e9690188a (patch)
treec9256a0046b98058cae254e08e444132516092e1 /digital-controller
parent1f1bb7e1a6be4a2cc3fe9a36667b024eb66da248 (diff)
programming instructions
Diffstat (limited to 'digital-controller')
-rw-r--r--digital-controller/arduino-uno-controller/firmware/firmware.ino21
1 files changed, 21 insertions, 0 deletions
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:
+ * <ADDRESS> <LED INTENSITY> <FAN INTENSITY>
+ *
+ * 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 <ADDRESS> 0, commands sent to all devices
+ *
+ * if <ADDRESS> -1, list of addresses seen returned
+ */
+
#include <Wire.h>
#define INPUT_SIZE 100 // TODO: make this a reasonable value