Skip to content

Commit 7bba793

Browse files
committed
allowing backlight change
1 parent 59eb35d commit 7bba793

File tree

1 file changed

+5
-3
lines changed
  • ports/nrf/boards/ohs2020_badge

1 file changed

+5
-3
lines changed

ports/nrf/boards/ohs2020_badge/board.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,16 @@ void board_init(void) {
8181
0x37, // set vertical scroll command
8282
display_init_sequence,
8383
sizeof(display_init_sequence),
84-
NULL, // backlight pin
84+
//NULL, // backlight pin
85+
&pin_P0_02, // backlight pin
8586
NO_BRIGHTNESS_COMMAND,
86-
1.0f, // brightness (ignored)
87-
true, // auto_brightness
87+
0.0f, // brightness (ignored)
88+
false, // auto_brightness
8889
false, // single_byte_bounds
8990
false, // data_as_commands
9091
true, // auto_refresh
9192
60); // native_frames_per_second
93+
9294
}
9395

9496
bool board_requests_safe_mode(void) {

0 commit comments

Comments
 (0)