Alphabetize, fix typo and remove incorrect comment

This commit is contained in:
Scott Shawcroft 2023-02-23 14:34:54 -08:00
parent 1a3358d036
commit b79661d631
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
3 changed files with 11 additions and 15 deletions

View File

@ -5,23 +5,21 @@ MCU_CHIP = nrf52840
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "XT25F64B,GD25Q64C"
CIRCUITPY_USB = 0
CIRCUITPY_FULL_BUILD = 1
# Modules that aren't useful on the board.
CIRCUITPY_AESIO = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOCORE = 0
CIRCUITPY_AUDIOMIXER = 0
CIRCUITPY_AUDIOPWMIO = 0
CIRCUITPY_COUNTIO = 0
CIRCUITPY_NEOPIXEL_WRITE = 0
CIRCUITPY_ROTARYIO = 0
CIRCUITPY_SYNTHIO = 0
CIRCUITPY_AESIO = 0
CIRCUITPY_ANALOGIO = 1
CIRCUITPY_AUDIOCORE = 0
CIRCUITPY_AUDIOMIXER = 0
CIRCUITPY_ONEWIREIO = 0
CIRCUITPY_RAINBOWIO = 0
CIRCUITPY_RGBMATRIX = 0
CIRCUITPY_ONEWIREIO = 0
CIRCUITPY_ROTARYIO = 0
CIRCUITPY_SYNTHIO = 0
CIRCUITPY_USB = 0
CIRCUITPY_BUILD_EXTENSIONS = espruino.zip
CIRCUITPY_DISPLAYIO = 1

View File

@ -419,7 +419,7 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
// Declare a module as a builtin, processed by makemoduledefs.py
// param module_name: MP_QSTR_<module name>
// param obj_module: mp_obj_module_t instance
// prarm enabled_define: used as `#if (enabled_define) around entry`
// param enabled_define: used as `#if (enabled_define) around entry`
#define MP_REGISTER_MODULE(module_name, obj_module, enabled_define)

View File

@ -388,8 +388,6 @@ STATIC bool _clean_area(displayio_epaperdisplay_obj_t *self) {
uint16_t width = displayio_display_core_get_width(&self->core);
uint16_t height = displayio_display_core_get_height(&self->core);
// Allocated and shared as a uint32_t array so the compiler knows the
// alignment everywhere.
uint8_t buffer[width / 2];
memset(buffer, 0x77, width / 2);
@ -403,7 +401,7 @@ STATIC bool _clean_area(displayio_epaperdisplay_obj_t *self) {
// Can't acquire display bus; skip the rest of the data. Try next display.
return false;
}
self->core.send(self->core.bus, DISPLAY_DATA, self->chip_select, (uint8_t *)buffer, width / 2);
self->core.send(self->core.bus, DISPLAY_DATA, self->chip_select, buffer, width / 2);
displayio_display_core_end_transaction(&self->core);
// TODO(tannewt): Make refresh displays faster so we don't starve other