Skip to content

Commit de43113

Browse files
committed
Fix other FourWire calls
1 parent bcf7549 commit de43113

File tree

96 files changed

+282
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+282
-282
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void board_init(void) {
5454
common_hal_busio_spi_never_reset(spi);
5555
common_hal_fourwire_fourwire_construct(bus,
5656
spi,
57-
&pin_PA28, // Command or data
58-
&pin_PA01, // Chip select
59-
&pin_PA27, // Reset
57+
MP_OBJ_FROM_PTR(&pin_PA28), // Command or data
58+
MP_OBJ_FROM_PTR(&pin_PA01), // Chip select
59+
MP_OBJ_FROM_PTR(&pin_PA27), // Reset
6060
12000000, // Baudrate
6161
0, // Polarity
6262
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ void board_init(void) {
3535
bus->base.type = &fourwire_fourwire_type;
3636
common_hal_fourwire_fourwire_construct(bus,
3737
spi,
38-
&pin_PB31, // TFT_DC Command or data
39-
&pin_PA27, // TFT_CS Chip select
40-
&pin_PB30, // TFT_RST Reset
38+
MP_OBJ_FROM_PTR(&pin_PB31), // TFT_DC Command or data
39+
MP_OBJ_FROM_PTR(&pin_PA27), // TFT_CS Chip select
40+
MP_OBJ_FROM_PTR(&pin_PB30), // TFT_RST Reset
4141
60000000, // Baudrate
4242
0, // Polarity
4343
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ void board_init(void) {
3535
bus->base.type = &fourwire_fourwire_type;
3636
common_hal_fourwire_fourwire_construct(bus,
3737
spi,
38-
&pin_PA07, // TFT_DC Command or data
39-
&pin_PA06, // TFT_CS Chip select
40-
&pin_PA04, // TFT_RST Reset
38+
MP_OBJ_FROM_PTR(&pin_PA07), // TFT_DC Command or data
39+
MP_OBJ_FROM_PTR(&pin_PA06), // TFT_CS Chip select
40+
MP_OBJ_FROM_PTR(&pin_PA04), // TFT_RST Reset
4141
60000000, // Baudrate
4242
0, // Polarity
4343
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ void board_init(void) {
4444
bus->base.type = &fourwire_fourwire_type;
4545
common_hal_fourwire_fourwire_construct(bus,
4646
spi,
47-
&pin_PB05, // EPD_DC Command or data
48-
&pin_PB07, // EPD_CS Chip select
49-
&pin_PA00, // EPD_RST Reset
47+
MP_OBJ_FROM_PTR(&pin_PB05), // EPD_DC Command or data
48+
MP_OBJ_FROM_PTR(&pin_PB07), // EPD_CS Chip select
49+
MP_OBJ_FROM_PTR(&pin_PA00), // EPD_RST Reset
5050
1000000, // Baudrate
5151
0, // Polarity
5252
0); // Phase

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

Lines changed: 3 additions & 3 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-
&pin_PA19, // TFT_DC Command or data
58-
&pin_PA17, // TFT_CS Chip select
59-
&pin_PA18, // TFT_RST Reset
57+
MP_OBJ_FROM_PTR(&pin_PA19), // TFT_DC Command or data
58+
MP_OBJ_FROM_PTR(&pin_PA17), // TFT_CS Chip select
59+
MP_OBJ_FROM_PTR(&pin_PA18), // TFT_RST Reset
6060
60000000, // Baudrate
6161
0, // Polarity
6262
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ void board_init(void) {
8383
bus->base.type = &fourwire_fourwire_type;
8484
common_hal_fourwire_fourwire_construct(bus,
8585
spi,
86-
&pin_PA16, // TFT_DC Command or data
87-
&pin_PA11, // TFT_CS Chip select
88-
&pin_PA17, // TFT_RST Reset
86+
MP_OBJ_FROM_PTR(&pin_PA16), // TFT_DC Command or data
87+
MP_OBJ_FROM_PTR(&pin_PA11), // TFT_CS Chip select
88+
MP_OBJ_FROM_PTR(&pin_PA17), // TFT_RST Reset
8989
60000000, // Baudrate
9090
0, // Polarity
9191
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ void board_init(void) {
5656
bus->base.type = &fourwire_fourwire_type;
5757
common_hal_fourwire_fourwire_construct(bus,
5858
spi,
59-
&pin_PB05, // TFT_DC Command or data
60-
&pin_PB07, // TFT_CS Chip select
61-
&pin_PA00, // TFT_RST Reset
59+
MP_OBJ_FROM_PTR(&pin_PB05), // TFT_DC Command or data
60+
MP_OBJ_FROM_PTR(&pin_PB07), // TFT_CS Chip select
61+
MP_OBJ_FROM_PTR(&pin_PA00), // TFT_RST Reset
6262
60000000, // Baudrate
6363
0, // Polarity
6464
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ void board_init(void) {
5757
bus->base.type = &fourwire_fourwire_type;
5858
common_hal_fourwire_fourwire_construct(bus,
5959
spi,
60-
&pin_PB05, // TFT_DC Command or data
61-
&pin_PB12, // TFT_CS Chip select
62-
&pin_PA00, // TFT_RST Reset
60+
MP_OBJ_FROM_PTR(&pin_PB05), // TFT_DC Command or data
61+
MP_OBJ_FROM_PTR(&pin_PB12), // TFT_CS Chip select
62+
MP_OBJ_FROM_PTR(&pin_PA00), // TFT_RST Reset
6363
60000000, // Baudrate
6464
0, // Polarity
6565
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void board_init(void) {
5252
bus->base.type = &fourwire_fourwire_type;
5353
common_hal_fourwire_fourwire_construct(bus,
5454
spi,
55-
&pin_PC06, // TFT_DC Command or data
56-
&pin_PB21, // TFT_CS Chip select
57-
&pin_PC07, // TFT_RST Reset
55+
MP_OBJ_FROM_PTR(&pin_PC06), // TFT_DC Command or data
56+
MP_OBJ_FROM_PTR(&pin_PB21), // TFT_CS Chip select
57+
MP_OBJ_FROM_PTR(&pin_PC07), // TFT_RST Reset
5858
60000000, // Baudrate
5959
0, // Polarity
6060
0); // Phase

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ void board_init(void) {
5353
busio_spi_obj_t *spi = common_hal_board_create_spi(0);
5454
common_hal_fourwire_fourwire_construct(bus,
5555
spi,
56-
&pin_PA09, // Command or data
57-
&pin_PA08, // Chip select
58-
NULL, // Reset
56+
MP_OBJ_FROM_PTR(&pin_PA09), // Command or data
57+
MP_OBJ_FROM_PTR(&pin_PA08), // Chip select
58+
MP_OBJ_NULL, // Reset
5959
24000000, // Baudrate
6060
0, // Polarity
6161
0); // Phase

0 commit comments

Comments
 (0)