8000 Merge pull request #1487 from tannewt/enable_displayio · Errolyn/circuitpython@07a4cc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07a4cc0

Browse files
authored
Merge pull request adafruit#1487 from tannewt/enable_displayio
Enable displayio on all Express boards.
2 parents fb2d87b + aaa644b commit 07a4cc0

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,14 @@ extern const struct _mp_obj_module_t pixelbuf_module;
283283
#define I2CSLAVE_MODULE
284284
#endif
285285

286-
#ifdef CIRCUITPY_DISPLAYIO
286+
#if !defined(CIRCUITPY_DISPLAYIO) || CIRCUITPY_DISPLAYIO
287+
#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 },
289290
#else
291+
#define CIRCUITPY_DISPLAYIO (0)
290292
#define CIRCUITPY_DISPLAY_LIMIT (0)
291-
#define DISPLAYIO_MODULE
293+
#define DISPLAYIO_MODULE
292294
#endif
293295

294296
#if MICROPY_PY_NETWORK

0 commit comments

Comments
 (0)
0