Skip to content

Commit 7979add

Browse files
committed
fourwire_construct no reset pin must be mp_const_none, not NULL
1 parent 37b2e66 commit 7979add

22 files changed

Lines changed: 23 additions & 24 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void board_init(void) {
5555
spi,
5656
MP_OBJ_FROM_PTR(&pin_PA09), // Command or data
5757
MP_OBJ_FROM_PTR(&pin_PA08), // Chip select
58-
MP_OBJ_NULL, // Reset
58+
mp_const_none, // Reset
5959
24000000, // Baudrate
6060
0, // Polarity
6161
0); // Phase

ports/espressif/boards/elecrow_crowpanel_3.5/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void board_init(void) {
5454
bus->base.type = &fourwire_fourwire_type;
5555
common_hal_fourwire_fourwire_construct(bus,
5656
spi,
57-
MP_OBJ_FROM_PTR(&pin_GPIO2), // TFT_DC Command or data
57+
MP_OBJ_FROM_PTR(&pin_GPIO2), // TFT_DC Command or data
5858
MP_OBJ_FROM_PTR(&pin_GPIO15), // TFT_CS Chip select
59-
NULL, // TFT_RST Reset
59+
mp_const_none, // TFT_RST Reset
6060
20000000, // Baudrate
6161
0, // Polarity
6262
0); // Phase

ports/espressif/boards/espressif_esp32s3_eye/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void board_init(void) {
5858
spi,
5959
MP_OBJ_FROM_PTR(&pin_GPIO43), // DC
6060
MP_OBJ_FROM_PTR(&pin_GPIO44), // CS
61-
NULL, // no reset pin
61+
mp_const_none, // no reset pin
6262
40000000, // baudrate
6363
0, // polarity
6464
0 // phase

ports/espressif/boards/hardkernel_odroid_go/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ void board_init(void) {
5252
common_hal_fourwire_fourwire_construct(bus,
5353
spi,
5454
MP_OBJ_FROM_PTR(&pin_GPIO21), // TFT_DC Command or data
55-
MP_OBJ_FROM_PTR(&pin_GPIO5), // TFT_CS Chip select
56-
NULL, // TFT_RST Reset
55+
MP_OBJ_FROM_PTR(&pin_GPIO5), // TFT_CS Chip select
56+
mp_const_none, // TFT_RST Reset
5757
40000000, // Baudrate
5858
0, // Polarity
5959
0); // Phase

ports/espressif/boards/hiibot_iots2/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void display_init(void) {
6464
spi,
6565
MP_OBJ_FROM_PTR(&pin_GPIO35), // DC
6666
MP_OBJ_FROM_PTR(&pin_GPIO36), // CS
67-
NULL, // NO RST ?
67+
mp_const_none, // NO RST ?
6868
40000000, // baudrate
6969
0, // polarity
7070
0 // phase

ports/espressif/boards/lilygo_tdeck/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void board_init(void) {
3434
spi,
3535
MP_OBJ_FROM_PTR(&pin_GPIO11), // TFT_DC Command or data
3636
MP_OBJ_FROM_PTR(&pin_GPIO12), // TFT_CS Chip select
37-
NULL, // TFT_RST Reset
37+
mp_const_none, // TFT_RST Reset
3838
60000000, // Baudrate
3939
0, // Polarity
4040
0); // Phase

ports/espressif/boards/lilygo_twatch_2020_v3/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void display_init(void) {
4848
spi,
4949
MP_OBJ_FROM_PTR(&pin_GPIO27), // DC
5050
MP_OBJ_FROM_PTR(&pin_GPIO5), // CS
51-
NULL, // RST
51+
mp_const_none, // RST
5252
24000000, // baudrate
5353
0, // polarity
5454
0 // phase

ports/espressif/boards/lilygo_twatch_s3/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void board_init(void) {
110110
spi,
111111
MP_OBJ_FROM_PTR(&pin_GPIO38), // DC
112112
MP_OBJ_FROM_PTR(&pin_GPIO12), // CS
113-
NULL, // RST
113+
mp_const_none, // RST
114114
40000000, // baudrate
115115
0, // polarity
116116
0 // phase

ports/espressif/boards/m5stack_core2/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static bool display_init(void) {
320320
spi,
321321
MP_OBJ_FROM_PTR(&pin_GPIO15), // DC
322322
MP_OBJ_FROM_PTR(&pin_GPIO5), // CS
323-
MP_OBJ_NULL, // RST
323+
mp_const_none, // RST
324324
32000000, // baudrate
325325
0, // polarity
326326
0 // phase

ports/espressif/boards/m5stack_cores3/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static bool display_init(void) {
4747
spi,
4848
MP_OBJ_FROM_PTR(&pin_GPIO35), // DC
4949
MP_OBJ_FROM_PTR(&pin_GPIO3), // CS
50-
MP_OBJ_NULL, // RST
50+
mp_const_none, // RST
5151
40000000, // baudrate
5252
0, // polarity
5353
0 // phase

0 commit comments

Comments
 (0)