Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace committed Mar 27, 2024
2 parents c971228 + 88e2baf commit 41e7ce3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/jshal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions src/jshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down
4 changes: 0 additions & 4 deletions src/microbithal_js.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions src/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 41e7ce3

Please sign in to comment.