summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_defns.mk2
-rw-r--r--py/circuitpy_mpconfig.h2
-rw-r--r--py/circuitpy_mpconfig.mk5
3 files changed, 9 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk
index 080263487..c10edfe4e 100644
--- a/py/circuitpy_defns.mk
+++ b/py/circuitpy_defns.mk
@@ -321,6 +321,8 @@ $(filter $(SRC_PATTERNS), \
terminalio/__init__.c \
uheap/__init__.c \
ustack/__init__.c \
+ _pew/__init__.c \
+ _pew/PewPew.c \
)
ifeq ($(INTERNAL_LIBM),1)
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index c20c0fb66..25aabc292 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -543,6 +543,7 @@ extern const struct _mp_obj_module_t pew_module;
USB_HID_MODULE \
USB_MIDI_MODULE \
USTACK_MODULE \
+ PEW_MODULE \
// If weak links are enabled, just include strong links in the main list of modules,
// and also include the underscore alternate names.
@@ -569,6 +570,7 @@ extern const struct _mp_obj_module_t pew_module;
vstr_t *repl_line; \
mp_obj_t rtc_time_source; \
mp_obj_t gamepad_singleton; \
+ mp_obj_t pew_singleton; \
mp_obj_t terminal_tilegrid_tiles; \
FLASH_ROOT_POINTERS \
NETWORK_ROOT_POINTERS \
diff --git a/py/circuitpy_mpconfig.mk b/py/circuitpy_mpconfig.mk
index a4a59170f..54a38dfee 100644
--- a/py/circuitpy_mpconfig.mk
+++ b/py/circuitpy_mpconfig.mk
@@ -213,6 +213,11 @@ CIRCUITPY_USB_MIDI = 1
endif
CFLAGS += -DCIRCUITPY_USB_MIDI=$(CIRCUITPY_USB_MIDI)
+ifndef CIRCUITPY_PEW
+CIRCUITPY_PEW = 0
+endif
+CFLAGS += -DCIRCUITPY_PEW=$(CIRCUITPY_PEW)
+
# For debugging.
ifndef CIRCUITPY_USTACK
CIRCUITPY_USTACK = 0