8000 Skip displayio on crickit builds and cpx build due to lack of space. · marcnewlin/circuitpython@aaa644b · GitHub
[go: up one dir, main page]

Skip to content

Commit aaa644b

Browse files
committed
Skip displayio on crickit builds and cpx build due to lack of space.
1 parent 0cdbc00 commit aaa644b

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@
4646
// USB is always used internally so skip the pin objects for it.
4747
#define IGNORE_PIN_PA24 1
4848
#define IGNORE_PIN_PA25 1
49+
50+
#define CIRCUITPY_DISPLAYIO (0)

ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@
4949
// USB is always used internally so skip the pin objects for it.
5050
#define IGNORE_PIN_PA24 1
5151
#define IGNORE_PIN_PA25 1
52+
53+
#define CIRCUITPY_DISPLAYIO (0)

ports/atmel-samd/boards/feather_m0_express_crickit/mpconfigboard.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@
3232

3333
#define DEFAULT_UART_BUS_RX (&pin_PA11)
3434
#define DEFAULT_UART_BUS_TX (&pin_PA10)
35+
36+
#define CIRCUITPY_DISPLAYIO (0)

ports/atmel-samd/mpconfigport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,15 @@ extern const struct _mp_obj_module_t pixelbuf_module;
283283
#define I2CSLAVE_MODULE
284284
#endif
285285

286+
#if !defined(CIRCUITPY_DISPLAYIO) || CIRCUITPY_DISPLAYIO
286287
#define CIRCUITPY_DISPLAYIO (1)
287288
#define CIRCUITPY_DISPLAY_LIMIT (3)
288289
#define DISPLAYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_displayio), (mp_obj_t)&displayio_module },
290+
#else
291+
#define CIRCUITPY_DISPLAYIO (0)
292+
#define CIRCUITPY_DISPLAY_LIMIT (0)
293+
#define DISPLAYIO_MODULE
294+
#endif
289295

290296
#if MICROPY_PY_NETWORK
291297
#define NETWORK_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module },

0 commit comments

Comments
 (0)
0