Skip to content

Commit aec3b24

Browse files
authored
Merge pull request #2733 from oshwabadge2020/change_backlight
Add backlight polarity flag to Display
2 parents 3959548 + 9e0c00d commit aec3b24

File tree

18 files changed

+40
-19
lines changed

18 files changed

+40
-19
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ void board_init(void) {
108108
false, // single_byte_bounds
109109
false, // data_as_commands
110110
true, // auto_refresh
111-
60); // native_frames_per_second
111+
60, // native_frames_per_second
112+
true); // backlight_on_high
112113
}
113114

114115
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ void board_init(void) {
8888
false, // single_byte_bounds
8989
false, // data_as_commands
9090
true, // auto_refresh
91-
60); // native_frames_per_second
91+
60, // native_frames_per_second
92+
true); // backlight_on_high
9293
}
9394

9495
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ void board_init(void) {
8989
false, // single_byte_bounds
9090
false, // data_as_commands
9191
true, // auto_refresh
92-
60); // native_frames_per_second
92+
60, // native_frames_per_second
93+
true); // backlight_on_high
9394
}
9495

9596
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ void board_init(void) {
139139
false, // single_byte_bounds
140140
false, // data_as_commands
141141
false, // auto_refresh
142-
20); // native_frames_per_second
142+
20, // native_frames_per_second
143+
true); // backlight_on_high
143144
}
144145

145146
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ void board_init(void) {
111111
false, // single_byte_bounds
112112
false, // data_as_commands
113113
true, // auto_refresh
114-
60); // native_frames_per_second
114+
60, // native_frames_per_second
115+
true); // backlight_on_high
115116
}
116117

117118
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ void board_init(void) {
8989
false, // single_byte_bounds
9090
false, // data_as_commands
9191
true, // auto_refresh
92-
60); // native_frames_per_second
92+
60, // native_frames_per_second
93+
true); // backlight_on_high
9394
}
9495

9596
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ void board_init(void) {
111111
false, // single_byte_bounds
112112
false, // data_as_commands
113113
true, // auto_refresh
114-
60); // native_frames_per_second
114+
60, // native_frames_per_second
115+
true); // backlight_on_high
115116
}
116117

117118
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ void board_init(void) {
8989
false, // single_byte_bounds
9090
false, // data_as_commands
9191
true, // auto_refresh
92-
60); // native_frames_per_second
92+
60, // native_frames_per_second
93+
true); // backlight_on_high
9394
}
9495

9596
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ void board_init(void) {
100100
false, // single_byte_bounds
101101
false, // data_as_commands
102102
true, // auto_refresh
103-
60); // native_frames_per_second
103+
60, // native_frames_per_second
104+
true); // backlight_on_high
104105
}
105106

106107
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ void board_init(void) {
117117
false, // single_byte_bounds
118118
false, // data_as_commands
119119
true, // auto_refresh
120-
60); // native_frames_per_second
120+
60, // native_frames_per_second
121+
true); // backlight_on_high
121122
}
122123

123124
bool board_requests_safe_mode(void) {

0 commit comments

Comments
 (0)