Skip to content

Commit b79661d

Browse files
committed
Alphabetize, fix typo and remove incorrect comment
1 parent 1a3358d commit b79661d

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

ports/nrf/boards/espruino_banglejs2/mpconfigboard.mk

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,21 @@ MCU_CHIP = nrf52840
55
SPI_FLASH_FILESYSTEM = 1
66
EXTERNAL_FLASH_DEVICES = "XT25F64B,GD25Q64C"
77

8-
CIRCUITPY_USB = 0
9-
108
CIRCUITPY_FULL_BUILD = 1
9+
10+
# Modules that aren't useful on the board.
11+
CIRCUITPY_AESIO = 0
1112
CIRCUITPY_AUDIOBUSIO = 0
13+
CIRCUITPY_AUDIOCORE = 0
14+
CIRCUITPY_AUDIOMIXER = 0
1215
CIRCUITPY_AUDIOPWMIO = 0
1316
CIRCUITPY_COUNTIO = 0
1417
CIRCUITPY_NEOPIXEL_WRITE = 0
15-
CIRCUITPY_ROTARYIO = 0
16-
CIRCUITPY_SYNTHIO = 0
17-
CIRCUITPY_AESIO = 0
18-
CIRCUITPY_ANALOGIO = 1
19-
CIRCUITPY_AUDIOCORE = 0
20-
CIRCUITPY_AUDIOMIXER = 0
18+
CIRCUITPY_ONEWIREIO = 0
2119
CIRCUITPY_RAINBOWIO = 0
2220
CIRCUITPY_RGBMATRIX = 0
23-
CIRCUITPY_ONEWIREIO = 0
21+
CIRCUITPY_ROTARYIO = 0
22+
CIRCUITPY_SYNTHIO = 0
23+
CIRCUITPY_USB = 0
2424

2525
CIRCUITPY_BUILD_EXTENSIONS = espruino.zip
26-
27-
CIRCUITPY_DISPLAYIO = 1

py/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
419419
// Declare a module as a builtin, processed by makemoduledefs.py
420420
// param module_name: MP_QSTR_<module name>
421421
// param obj_module: mp_obj_module_t instance
422-
// prarm enabled_define: used as `#if (enabled_define) around entry`
422+
// param enabled_define: used as `#if (enabled_define) around entry`
423423

424424
#define MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
425425

shared-module/displayio/EPaperDisplay.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ STATIC bool _clean_area(displayio_epaperdisplay_obj_t *self) {
388388
uint16_t width = displayio_display_core_get_width(&self->core);
389389
uint16_t height = displayio_display_core_get_height(&self->core);
390390

391-
// Allocated and shared as a uint32_t array so the compiler knows the
392-
// alignment everywhere.
393391
uint8_t buffer[width / 2];
394392
memset(buffer, 0x77, width / 2);
395393

@@ -403,7 +401,7 @@ STATIC bool _clean_area(displayio_epaperdisplay_obj_t *self) {
403401
// Can't acquire display bus; skip the rest of the data. Try next display.
404402
return false;
405403
}
406-
self->core.send(self->core.bus, DISPLAY_DATA, self->chip_select, (uint8_t *)buffer, width / 2);
404+
self->core.send(self->core.bus, DISPLAY_DATA, self->chip_select, buffer, width / 2);
407405
displayio_display_core_end_transaction(&self->core);
408406

409407
// TODO(tannewt): Make refresh displays faster so we don't starve other

0 commit comments

Comments
 (0)