diff --git a/lib/micropython-microbit-v2 b/lib/micropython-microbit-v2 index 87f726ce..0b06914c 160000 --- a/lib/micropython-microbit-v2 +++ b/lib/micropython-microbit-v2 @@ -1 +1 @@ -Subproject commit 87f726cec9feeffcaee6e953d85fea14b28c404f +Subproject commit 0b06914c71c18533da90df85230ac198578669bf diff --git a/src/jshal.h b/src/jshal.h index 320af1a5..c83bca65 100644 --- a/src/jshal.h +++ b/src/jshal.h @@ -56,7 +56,6 @@ int mp_js_hal_pin_set_analog_period_us(int pin, int period); int mp_js_hal_display_get_pixel(int x, int y); void mp_js_hal_display_set_pixel(int x, int y, int value); -void mp_js_hal_display_clear(void); int mp_js_hal_display_read_light_level(void); int mp_js_hal_accelerometer_get_x(void); diff --git a/src/jshal.js b/src/jshal.js index c313dada..62c0f7a2 100644 --- a/src/jshal.js +++ b/src/jshal.js @@ -163,10 +163,6 @@ mergeInto(LibraryManager.library, { Module.board.display.setPixel(x, y, value); }, - mp_js_hal_display_clear: function () { - Module.board.display.clear(); - }, - mp_js_hal_display_read_light_level: function () { return Module.board.display.lightLevel.value; }, diff --git a/src/microbithal_js.c b/src/microbithal_js.c index a938352f..22fbfd97 100644 --- a/src/microbithal_js.c +++ b/src/microbithal_js.c @@ -318,10 +318,6 @@ void microbit_hal_display_enable(int value) { */ } -void microbit_hal_display_clear(void) { - mp_js_hal_display_clear(); -} - int microbit_hal_display_get_pixel(int x, int y) { return mp_js_hal_display_get_pixel(x, y); } diff --git a/src/mpconfigport.h b/src/mpconfigport.h index a5064046..e80fac5a 100644 --- a/src/mpconfigport.h +++ b/src/mpconfigport.h @@ -87,6 +87,8 @@ #define MICROPY_PY_TIME (1) #define MICROPY_PY_MACHINE_PULSE (1) +#define MICROPY_PY_SPEECH_DEFAULT_MODE (3) + #define MICROPY_HW_ENABLE_RNG (1) // The simulator provides its own version of the relevant mbfs methods.