summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
m---------frozen/circuitpython-stage0
-rw-r--r--ports/atmel-samd/boards/ugame10/mpconfigboard.h23
-rw-r--r--ports/atmel-samd/boards/ugame10/mpconfigboard.mk16
4 files changed, 40 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules
index 1f7a28d14..5f8eec8b5 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -95,3 +95,6 @@
[submodule "frozen/pew-pewpew-standalone-10.x"]
path = frozen/pew-pewpew-standalone-10.x
url = https://github.com/pewpew-game/pew-pewpew-standalone-10.x.git
+[submodule "frozen/circuitpython-stage"]
+ path = frozen/circuitpython-stage
+ url = https://github.com/python-ugame/circuitpython-stage
diff --git a/frozen/circuitpython-stage b/frozen/circuitpython-stage
new file mode 160000
+Subproject d8a9d8c1d73041e4cc5669c5441f531ecba517f
diff --git a/ports/atmel-samd/boards/ugame10/mpconfigboard.h b/ports/atmel-samd/boards/ugame10/mpconfigboard.h
index c22a3f735..caa05bc1a 100644
--- a/ports/atmel-samd/boards/ugame10/mpconfigboard.h
+++ b/ports/atmel-samd/boards/ugame10/mpconfigboard.h
@@ -24,6 +24,29 @@
{ MP_OBJ_NEW_QSTR(MP_QSTR_gamepad),(mp_obj_t)&gamepad_module }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR__stage), (mp_obj_t)&stage_module }
+#define IGNORE_PIN_PB00 1
+#define IGNORE_PIN_PB01 1
+#define IGNORE_PIN_PB02 1
+#define IGNORE_PIN_PB03 1
+#define IGNORE_PIN_PB04 1
+#define IGNORE_PIN_PB05 1
+#define IGNORE_PIN_PB06 1
+#define IGNORE_PIN_PB07 1
+#define IGNORE_PIN_PB08 1
+#define IGNORE_PIN_PB09 1
+#define IGNORE_PIN_PB10 1
+#define IGNORE_PIN_PB11 1
+#define IGNORE_PIN_PB12 1
+#define IGNORE_PIN_PB13 1
+#define IGNORE_PIN_PB14 1
+#define IGNORE_PIN_PB15 1
+#define IGNORE_PIN_PB16 1
+#define IGNORE_PIN_PB17 1
+#define IGNORE_PIN_PB22 1
+#define IGNORE_PIN_PB23 1
+#define IGNORE_PIN_PB30 1
+#define IGNORE_PIN_PB31 1
+
// USB is always used internally so skip the pin objects for it.
#define IGNORE_PIN_PA24 1
#define IGNORE_PIN_PA25 1
diff --git a/ports/atmel-samd/boards/ugame10/mpconfigboard.mk b/ports/atmel-samd/boards/ugame10/mpconfigboard.mk
index 6dc0af9cf..0a727c8b1 100644
--- a/ports/atmel-samd/boards/ugame10/mpconfigboard.mk
+++ b/ports/atmel-samd/boards/ugame10/mpconfigboard.mk
@@ -1,5 +1,4 @@
LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld
-#LD_FILE = boards/samd21x18-bootloader.ld
USB_VID = 0x239A
USB_PID = 0x801F
USB_PRODUCT = "uGame10"
@@ -13,5 +12,18 @@ LONGINT_IMPL = MPZ
CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21
+CIRCUITPY_STAGE = 1
+CIRCUITPY_MATH = 1
+CIRCUITPY_AUDIOIO = 1
+CIRCUITPY_ANALOGIO = 1
+CIRCUITPY_GAMEPAD = 1
+CIRCUITPY_TOUCHIO = 0
+CIRCUITPY_NEOPIXEL_WRITE = 0
+CIRCUITPY_RTC = 0
+CIRCUITPY_SAMD = 0
+CIRCUITPY_USB_MIDI = 0
+CIRCUITPY_USB_HID = 0
+CIRCUITPY_FREQUENCYIO = 0
+CIRCUITPY_SMALL_BUILD = 1
-FROZEN_MPY_DIRS += $(TOP)/frozen/ugame10
+FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage