Merge pull request #2450 from Marius-450/marius-display-limit-2

CIRCUITPY_DISPLAY_LIMIT = 2 for monster m4sk
This commit is contained in:
Scott Shawcroft 2020-01-07 12:08:59 -08:00 committed by GitHub
commit 866ac13405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -19,3 +19,10 @@
// USB is always used internally so skip the pin objects for it.
#define IGNORE_PIN_PA24 1
#define IGNORE_PIN_PA25 1
// Enable the use of 2 displays
#define CIRCUITPY_DISPLAY_LIMIT (2)

View File

@ -328,7 +328,9 @@ extern const struct _mp_obj_module_t terminalio_module;
#define DISPLAYIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_displayio), (mp_obj_t)&displayio_module },
#define FONTIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_fontio), (mp_obj_t)&fontio_module },
#define TERMINALIO_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR_terminalio), (mp_obj_t)&terminalio_module },
#ifndef CIRCUITPY_DISPLAY_LIMIT
#define CIRCUITPY_DISPLAY_LIMIT (1)
#endif
#else
#define DISPLAYIO_MODULE
#define FONTIO_MODULE