Skip to content

Commit e99f65c

Browse files
committed
Board build fixes
1 parent aa2da25 commit e99f65c

File tree

6 files changed

+31
-5
lines changed

6 files changed

+31
-5
lines changed

ports/atmel-samd/boards/openbook_m4/board.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ uint8_t stop_sequence[] = {
5252
0x02, 0x80, 0xf0 // Power off
5353
};
5454

55+
uint8_t refresh_sequence[] = {
56+
0x12, 0x00
57+
};
58+
5559
void board_init(void) {
5660
busio_spi_obj_t *spi = &displays[0].fourwire_bus.inline_bus;
5761
common_hal_busio_spi_construct(spi, &pin_PB13, &pin_PB15, NULL, false);
@@ -74,6 +78,7 @@ void board_init(void) {
7478
bus,
7579
start_sequence,
7680
sizeof(start_sequence),
81+
0, // start up time
7782
stop_sequence,
7883
sizeof(stop_sequence),
7984
300, // width
@@ -92,13 +97,15 @@ void board_init(void) {
9297
NO_COMMAND, // write_color_ram_command (can add this for grayscale eventually)
9398
false, // color_bits_inverted
9499
0x000000, // highlight_color
95-
0x12, // refresh_display_command
100+
refresh_sequence, // refresh_display_sequence
101+
sizeof(refresh_sequence),
96102
40, // refresh_time
97103
&pin_PA01, // busy_pin
98104
false, // busy_state
99105
5, // seconds_per_frame
100106
false, // chip_select (don't always toggle chip select)
101107
false, // grayscale
108+
false, // acep
102109
false); // two_byte_sequence_length
103110
}
104111

ports/atmel-samd/boards/pewpew_m4/mpconfigboard.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
5353

5454
# Override optimization to keep binary small
5555
OPTIMIZATION_FLAGS = -Os
56+
57+
# We don't have room for the fonts for terminalio for certain languages,
58+
# so turn off terminalio and force a clean build.
59+
ifneq (,$(filter $(TRANSLATION),ja ko ru))
60+
CIRCUITPY_TERMINALIO = 0
61+
RELEASE_NEEDS_CLEAN_BUILD = 1
62+
endif

ports/espressif/boards/adafruit_magtag_2.9_grayscale/board.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ const uint8_t display_stop_sequence[] = {
109109
0x02, 0x00 // Power off
110110
};
111111

112+
const uint8_t refresh_sequence[] = {
113+
0x12, 0x00
114+
};
115+
112116
void board_init(void) {
113117
// Debug UART
114118
#ifdef DEBUG
@@ -137,6 +141,7 @@ void board_init(void) {
137141
display,
138142
bus,
139143
display_start_sequence, sizeof(display_start_sequence),
144+
0, // start up time
140145
display_stop_sequence, sizeof(display_stop_sequence),
141146
296, // width
142147
128, // height
@@ -154,13 +159,14 @@ void board_init(void) {
154159
0x13, // write_color_ram_command
155160
false, // color_bits_inverted
156161
0x000000, // highlight_color
157-
0x12, // refresh_display_command
162+
refresh_sequence, sizeof(refresh_sequence),
158163
1.0, // refresh_time
159164
&pin_GPIO5, // busy_pin
160165
false, // busy_state
161166
5.0, // seconds_per_frame
162167
false, // always_toggle_chip_select
163168
true, // grayscale
169+
false, // acep
164170
false); // two_byte_sequence_length
165171
}
166172

ports/nrf/boards/espruino_banglejs2/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ CIRCUITPY_RAINBOWIO = 0
2222
CIRCUITPY_RGBMATRIX = 0
2323
CIRCUITPY_ONEWIREIO = 0
2424

25-
CIRCUITPY_BUILD_EXTENSIONS = "espruino.zip"
25+
CIRCUITPY_BUILD_EXTENSIONS = espruino.zip
2626

2727
CIRCUITPY_DISPLAYIO = 1

ports/raspberrypi/boards/pimoroni_badger2040/board.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ const uint8_t display_stop_sequence[] = {
260260
POF, 0x00 // Power off
261261
};
262262

263+
const uint8_t refresh_sequence[] = {
264+
DRF, 0x00
265+
};
266+
263267
void board_init(void) {
264268
// Drive the EN_3V3 pin high so the board stays awake on battery power
265269
enable_pin_obj.base.type = &digitalio_digitalinout_type;
@@ -293,6 +297,7 @@ void board_init(void) {
293297
display,
294298
bus,
295299
display_start_sequence, sizeof(display_start_sequence),
300+
0, // start up time
296301
display_stop_sequence, sizeof(display_stop_sequence),
297302
296, // width
298303
128, // height
@@ -310,13 +315,14 @@ void board_init(void) {
310315
DTM1, // write_color_ram_command
311316
false, // color_bits_inverted
312317
0x000000, // highlight_color
313-
DRF, // refresh_display_command
318+
refresh_sequence, sizeof(refresh_sequence), // refresh_display_command
314319
1.0, // refresh_time
315320
&pin_GPIO26, // busy_pin
316321
false, // busy_state
317322
2.0, // seconds_per_frame
318323
false, // always_toggle_chip_select
319324
false, // grayscale
325+
false, // acep
320326
false); // two_byte_sequence_length
321327
}
322328

shared-bindings/displayio/EPaperDisplay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
//| write_color_ram_command: Optional[int] = None,
7272
//| color_bits_inverted: bool = False,
7373
//| highlight_color: int = 0x000000,
74-
//| refresh_display_command: Union[int, ~circuitpython_typing.ReadableBuffer],
74+
//| refresh_display_command: Union[int, circuitpython_typing.ReadableBuffer],
7575
//| refresh_time: float = 40,
7676
//| busy_pin: Optional[microcontroller.Pin] = None,
7777
//| busy_state: bool = True,

0 commit comments

Comments
 (0)