diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | src/model01.ino | 6 |
3 files changed, 14 insertions, 0 deletions
@@ -23,6 +23,10 @@ CXXFLAGS = -DARDUINO_AVR_MODEL01 \ -DUSB_MANUFACTURER="\"keyboardio\"" -DUSB_PRODUCT="\"Model 01\"" \ -DKALEIDOSCOPE_HARDWARE_H="\"Kaleidoscope-Hardware-Model01.h\"" +ifeq ($(ENABLE_SERIAL),1) +CXXFLAGS += -DENABLE_SERIAL +endif + AVRDUDE_OPTS = -q AVRDUDE_CONF = /etc/avrdude.conf #MONITOR_PORT = $(firstword $(wildcard /dev/serial/by-id/usb-keyboardio_Model_01_*)) @@ -36,6 +36,10 @@ Initialize (or update) submodules: ~$ make +To enable communicating with the host via a simple Serial protocol, use + + ~$ ENABLE_SERIAL=1 make + Flash firmware ============== diff --git a/src/model01.ino b/src/model01.ino index 03ad6c2..1a65c5d 100644 --- a/src/model01.ino +++ b/src/model01.ino @@ -20,6 +20,9 @@ #include <Kaleidoscope-Colormap.h> #include <Kaleidoscope-EEPROM-Settings.h> #include <Kaleidoscope-Escape-OneShot.h> +#ifdef ENABLE_SERIAL +# include <Kaleidoscope-FocusSerial.h> +#endif #include <Kaleidoscope-IdleLEDs.h> #include <Kaleidoscope-LEDControl.h> #include <Kaleidoscope-LED-ActiveModColor.h> @@ -45,6 +48,9 @@ KALEIDOSCOPE_INIT_PLUGINS( , EscapeOneShot , ActiveModColorEffect , Macros +#ifdef ENABLE_SERIAL + , Focus +#endif ); void setup() { |