Skip to content

Commit 80ae142

Browse files
authored
Merge pull request #6416 from FoamyGuy/display_brightness_pwm
display brightness pwm 500hz frequency
2 parents ac282b2 + 67de898 commit 80ae142

File tree

32 files changed

+67
-35
lines changed

32 files changed

+67
-35
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
@@ -111,7 +111,8 @@ void board_init(void) {
111111
true, // auto_refresh
112112
60, // native_frames_per_second
113113
true, // backlight_on_high
114-
false); // not SH1107
114+
false, // not SH1107
115+
50000); // backlight pwm frequency
115116
}
116117

117118
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
@@ -91,7 +91,8 @@ void board_init(void) {
9191
true, // auto_refresh
9292
60, // native_frames_per_second
9393
true, // backlight_on_high
94-
false); // not SH1107
94+
false, // not SH1107
95+
50000); // backlight pwm frequency
9596
}
9697

9798
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
@@ -92,7 +92,8 @@ void board_init(void) {
9292
true, // auto_refresh
9393
60, // native_frames_per_second
9494
true, // backlight_on_high
95-
false); // SH1107_addressing
95+
false, // SH1107_addressing
96+
50000); // backlight pwm frequency
9697
}
9798

9899
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ void board_init(void) {
9090
true, // auto_refresh
9191
2, // native_frames_per_second
9292
true, // backlight_on_high
93-
true); // SH1107_addressing
93+
true, // SH1107_addressing
94+
50000); // backlight pwm frequency
9495
}
9596

9697
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
@@ -144,7 +144,8 @@ void board_init(void) {
144144
false, // auto_refresh
145145
20, // native_frames_per_second
146146
true, // backlight_on_high
147-
false); // SH1107_addressing
147+
false, // SH1107_addressing
148+
50000); // backlight pwm frequency
148149
}
149150

150151
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
@@ -114,7 +114,8 @@ void board_init(void) {
114114
true, // auto_refresh
115115
60, // native_frames_per_second
116116
true, // backlight_on_high
117-
false); // SH1107_addressing
117+
false, // SH1107_addressing
118+
50000); // backlight pwm frequency
118119
}
119120

120121
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
@@ -114,7 +114,8 @@ void board_init(void) {
114114
true, // auto_refresh
115115
60, // native_frames_per_second
116116
true, // backlight_on_high
117-
false); // SH1107_addressing
117+
false, // SH1107_addressing
118+
50000); // backlight pwm frequency
118119
}
119120

120121
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
@@ -101,7 +101,8 @@ void board_init(void) {
101101
true, // auto_refresh
102102
60, // native_frames_per_second
103103
true, // backlight_on_high
104-
false); // SH1107_addressing
104+
false, // SH1107_addressing
105+
50000); // backlight pwm frequency
105106
}
106107

107108
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
@@ -118,7 +118,8 @@ void board_init(void) {
118118
true, // auto_refresh
119119
60, // native_frames_per_second
120120
true, // backlight_on_high
121-
false); // SH1107_addressing
121+
false, // SH1107_addressing
122+
500); // backlight_pwm_frequency
122123
}
123124

124125
bool board_requests_safe_mode(void) {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ void board_init(void) {
109109
true, // auto_refresh
110110
60, // native_frames_per_second
111111
true, // backlight_on_high
112-
false); // SH1107_addressing
112+
false, // SH1107_addressing
113+
50000); // backlight pwm frequency
113114

114115
// Enabling the Power of the 40-pin at the back
115116
CTR_5V.base.type = &digitalio_digitalinout_type;

0 commit comments

Comments
 (0)