summaryrefslogtreecommitdiff
path: root/py/circuitpy_mpconfig.mk
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-04-15 15:40:06 -0700
committerScott Shawcroft <scott@tannewt.org>2019-04-15 15:40:06 -0700
commitc927e6b938ff35fe0f42180d1dc0f9d58f8e571c (patch)
tree7be059364206e22823c099bd6c5870dc1fd78392 /py/circuitpy_mpconfig.mk
parenteeef5359f90fc3fa8b4b736d8f751b034a448167 (diff)
Split GamePadShift from GamePad to save space on most boards.
Diffstat (limited to 'py/circuitpy_mpconfig.mk')
-rw-r--r--py/circuitpy_mpconfig.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.mk b/py/circuitpy_mpconfig.mk
index 8ea72f0bf..b436929e0 100644
--- a/py/circuitpy_mpconfig.mk
+++ b/py/circuitpy_mpconfig.mk
@@ -102,6 +102,11 @@ CIRCUITPY_GAMEPAD = $(CIRCUITPY_FULL_BUILD)
endif
CFLAGS += -DCIRCUITPY_GAMEPAD=$(CIRCUITPY_GAMEPAD)
+ifndef CIRCUITPY_GAMEPADSHIFT
+CIRCUITPY_GAMEPADSHIFT = 0
+endif
+CFLAGS += -DCIRCUITPY_GAMEPADSHIFT=$(CIRCUITPY_GAMEPADSHIFT)
+
ifndef CIRCUITPY_I2CSLAVE
CIRCUITPY_I2CSLAVE = $(CIRCUITPY_FULL_BUILD)
endif