8000 Merge pull request #1823 from ladyada/master · losingrose/circuitpython@681bfcb · GitHub
[go: up one dir, main page]

Skip to content

Commit 681bfcb

Browse files
authored
Merge pull request adafruit#1823 from ladyada/master
fix up pybadge for final release board (swap backlite and reset)
2 parents b87ce5b + 9b593cd commit 681bfcb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void board_init(void) {
8181
spi,
8282
&pin_PB05, // TFT_DC Command or data
8383
&pin_PB07, // TFT_CS Chip select
84-
&pin_PA01); // TFT_RST Reset
84+
&pin_PA00); // TFT_RST Reset
8585

8686
displayio_display_obj_t* display = &displays[0].display;
8787
display->base.type = &displayio_display_type;
@@ -99,7 +99,7 @@ void board_init(void) {
9999
0x37, // set vertical scroll command
100100
display_init_sequence,
101101
sizeof(display_init_sequence),
102-
&pin_PA00,
102+
&pin_PA01, // backlight pin
103103
1.0f, // brightness (ignored)
104104
true, // auto_brightness
105105
false, // single_byte_bounds

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
5454
{ MP_OBJ_NEW_QSTR(MP_QSTR_BUTTON_CLOCK), MP_ROM_PTR(&pin_PB31) },
5555

5656
// TFT control pins
57-
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_LITE), MP_ROM_PTR(&pin_PA00) },
57+
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_LITE), MP_ROM_PTR(&pin_PA01) },
5858
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_MOSI), MP_ROM_PTR(&pin_PB15) },
5959
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_SCK), MP_ROM_PTR(&pin_PB13) },
60-
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_RST), MP_ROM_PTR(&pin_PA01) },
60+
{ MP_OBJ_NEW_QSTR(MP_QSTR_TFT_RST), MP_ROM_PTR(&pin_PA00) },
6161
{ MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_PB07) },
6262
{ MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_PB05) },
6363

0 commit comments

Comments
 (0)
0