Skip to content

Commit 36a23e0

Browse files
committed
Rework refresh API and factor common display stuff out
NOT TESTED! Just compiles Fixes micropython#1691
1 parent c247e7d commit 36a23e0

File tree

24 files changed

+726
-730
lines changed

24 files changed

+726
-730
lines changed

ports/atmel-samd/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
289289
$(addprefix common-hal/, $(SRC_COMMON_HAL))
290290

291291
SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE)) \
292-
$(addprefix shared-module/, $(SRC_SHARED_MODULE))
292+
$(addprefix shared-module/, $(SRC_SHARED_MODULE)) \
293+
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
293294

294295
SRC_S = supervisor/$(CHIP_FAMILY)_cpu.s
295296

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ void board_init(void) {
106106
1.0f, // brightness (ignored)
107107
true, // auto_brightness
108108
false, // single_byte_bounds
109-
false); // data_as_commands
109+
false, // data_as_commands
110+
true, // auto_refresh
111+
60); // native_frames_per_second
110112
}
111113

112114
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ void board_init(void) {
108108
1.0f, // brightness (ignored)
109109
true, // auto_brightness
110110
false, // single_byte_bounds
111-
false); // data_as_commands
111+
false, // data_as_commands
112+
true, // auto_refresh
113+
60); // native_frames_per_second
112114
}
113115

114116
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ void board_init(void) {
8686
1.0f, // brightness (ignored)
8787
true, // auto_brightness
8888
false, // single_byte_bounds
89-
false); // data_as_commands
89+
false, // data_as_commands
90+
true, // auto_refresh
91+
60); // native_frames_per_second
9092
}
9193

9294
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ void board_init(void) {
108108
1.0f, // brightness (ignored)
109109
true, // auto_brightness
110110
false, // single_byte_bounds
111-
false); // data_as_commands
111+
false, // data_as_commands
112+
true, // auto_refresh
113+
60); // native_frames_per_second
112114
}
113115

114116
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ void board_init(void) {
8686
1.0f, // brightness (ignored)
8787
true, // auto_brightness
8888
false, // single_byte_bounds
89-
false); // data_as_commands
89+
false, // data_as_commands
90+
true, // auto_refresh
91+
60); // native_frames_per_second
9092
}
9193

9294
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ void board_init(void) {
9898
1.0f, // brightness (ignored)
9999
true, // auto_brightness
100100
false, // single_byte_bounds
101-
false); // data_as_commands
101+
false, // data_as_commands
102+
true, // auto_refresh
103+
60); // native_frames_per_second
102104
}
103105

104106
bool board_requests_safe_mode(void) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ void board_init(void) {
118118
1.0f, // brightness (ignored)
119119
true, // auto_brightness
120120
false, // single_byte_bounds
121-
false); // data_as_commands
121+
false, // data_as_commands
122+
true, // auto_refresh
123+
60); // native_frames_per_second
122124
}
123125

124126
bool board_requests_safe_mode(void) {

ports/nrf/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
192192
$(addprefix common-hal/, $(SRC_COMMON_HAL))
193193

194194
SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE)) \
195-
$(addprefix shared-module/, $(SRC_SHARED_MODULE))
195+
$(addprefix shared-module/, $(SRC_SHARED_MODULE)) \
196+
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
196197

197198
SRC_S = supervisor/cpu.s
198199

ports/stm32f4/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
216216
$(addprefix common-hal/, $(SRC_COMMON_HAL))
217217

218218
SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE)) \
219-
$(addprefix shared-module/, $(SRC_SHARED_MODULE))
219+
$(addprefix shared-module/, $(SRC_SHARED_MODULE)) \
220+
$(addprefix shared-module/, $(SRC_SHARED_MODULE_INTERNAL))
220221

221222

222223

0 commit comments

Comments
 (0)