aboutsummaryrefslogtreecommitdiff
path: root/digital-controller/arduino-uno-controller
diff options
context:
space:
mode:
authorplampkin <83132062+plampkin@users.noreply.github.com>2021-04-26 16:23:06 -0500
committerGitHub <noreply@github.com>2021-04-26 16:23:06 -0500
commit7982c569c973a1148a678391e471ee39d6eaebb9 (patch)
treec9256a0046b98058cae254e08e444132516092e1 /digital-controller/arduino-uno-controller
parent8b270c8c9a948ec70ba95a8ba70fccaf925709ac (diff)
parentfc3dbea7150a2b0e963fbd17368e880e9690188a (diff)
Merge pull request #18 from untzag/programming
programming instructions
Diffstat (limited to 'digital-controller/arduino-uno-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