aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-06-27 02:15:32 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-06-27 03:17:30 +0200
commit9d538b467cd0ef7db5b149ff66b1cfc89af5032e (patch)
tree45d700156445a621d7edda973a1c2849002794a3
parentcfc91f61ad120c5a9de658af1c16f092954dfd11 (diff)
Build: Replace 'ENABLE_SERIAL=1' with 'ENABLE_SERIAL=yes'.
That is, to enable communicating with the host via a simple Serial protocol. The feature is disabled by default.
-rw-r--r--Makefile2
-rw-r--r--README12
2 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ec992ae..1c6b6ba 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ CXXFLAGS = -DARDUINO_AVR_MODEL01 \
-DUSB_MANUFACTURER="\"keyboardio\"" -DUSB_PRODUCT="\"Model 01\"" \
-DKALEIDOSCOPE_HARDWARE_H="\"Kaleidoscope-Hardware-Model01.h\""
-ifeq ($(ENABLE_SERIAL),1)
+ifeq ($(ENABLE_SERIAL),yes)
CXXFLAGS += -DENABLE_SERIAL
endif
diff --git a/README b/README
index 4374e16..3352f2b 100644
--- a/README
+++ b/README
@@ -5,8 +5,8 @@ A firmware Sketch for the Keyboardio Model 01. Based algerno's:
https://git.madhouse-project.org/algernon/Model01-Sketch#base-layer
-Build
-=====
+Build firmware
+==============
On Debian systems, the following packages are required:
@@ -38,7 +38,7 @@ Initialize (or update) submodules:
To enable communicating with the host via a simple Serial protocol, use
- ~$ ENABLE_SERIAL=1 make
+ ~$ ENABLE_SERIAL=yes make
Flash firmware
@@ -50,10 +50,10 @@ Press down the 'prog' key while the board is rebooting. You can release
it once it glows red.
-Apply the color map
-===================
+Apply color map
+===============
~$ make apply-colormap
This requires a firmware supporting the Serial protocol. (Add
-ENABLE_SERIAL=1 to the build environment.)
+ENABLE_SERIAL=yes to the build environment.)