Skip displayio on crickit builds and cpx build due to lack of space.

This commit is contained in:
Scott Shawcroft 2019-01-22 18:49:37 -08:00
parent 0cdbc004e6
commit aaa644b223
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
4 changed files with 12 additions and 0 deletions

View File

@ -46,3 +46,5 @@
// USB is always used internally so skip the pin objects for it. // USB is always used internally so skip the pin objects for it.
#define IGNORE_PIN_PA24 1 #define IGNORE_PIN_PA24 1
#define IGNORE_PIN_PA25 1 #define IGNORE_PIN_PA25 1
#define CIRCUITPY_DISPLAYIO (0)

View File

@ -49,3 +49,5 @@
// USB is always used internally so skip the pin objects for it. // USB is always used internally so skip the pin objects for it.
#define IGNORE_PIN_PA24 1 #define IGNORE_PIN_PA24 1
#define IGNORE_PIN_PA25 1 #define IGNORE_PIN_PA25 1
#define CIRCUITPY_DISPLAYIO (0)

View File

@ -32,3 +32,5 @@
#define DEFAULT_UART_BUS_RX (&pin_PA11) #define DEFAULT_UART_BUS_RX (&pin_PA11)
#define DEFAULT_UART_BUS_TX (&pin_PA10) #define DEFAULT_UART_BUS_TX (&pin_PA10)
#define CIRCUITPY_DISPLAYIO (0)

View File

@ -283,9 +283,15 @@ extern const struct _mp_obj_module_t pixelbuf_module;
#define I2CSLAVE_MODULE #define I2CSLAVE_MODULE
#endif #endif
#if !defined(CIRCUITPY_DISPLAYIO) || CIRCUITPY_DISPLAYIO
#define CIRCUITPY_DISPLAYIO (1) #define CIRCUITPY_DISPLAYIO (1)
#define CIRCUITPY_DISPLAY_LIMIT (3) #define CIRCUITPY_DISPLAY_LIMIT (3)
#define DISPLAYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_displayio), (mp_obj_t)&displayio_module }, #define DISPLAYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_displayio), (mp_obj_t)&displayio_module },
#else
#define CIRCUITPY_DISPLAYIO (0)
#define CIRCUITPY_DISPLAY_LIMIT (0)
#define DISPLAYIO_MODULE
#endif
#if MICROPY_PY_NETWORK #if MICROPY_PY_NETWORK
#define NETWORK_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module }, #define NETWORK_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module },