File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
ports/espressif/boards/waveshare_esp32_c6_lcd_1_47 Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,8 @@ uint8_t display_init_sequence[] = {
40
40
};
41
41
42
42
static void display_init (void ) {
43
+ busio_spi_obj_t * spi = common_hal_board_create_spi (0 );
43
44
fourwire_fourwire_obj_t * bus = & allocate_display_bus ()-> fourwire_bus ;
44
- busio_spi_obj_t * spi = & bus -> inline_bus ;
45
-
46
- common_hal_busio_spi_construct (
47
- spi ,
48
- & pin_GPIO7 , // CLK
49
- & pin_GPIO6 , // MOSI
50
- NULL , // MISO not connected
51
- false); // Not half-duplex
52
-
53
- common_hal_busio_spi_never_reset (spi );
54
-
55
45
bus -> base .type = & fourwire_fourwire_type ;
56
46
57
47
common_hal_fourwire_fourwire_construct (
@@ -73,7 +63,7 @@ static void display_init(void) {
73
63
bus ,
74
64
172 , // width (after rotation)
75
65
320 , // height (after rotation)
76
- 34 , // column start
66
+ 34 , // column start
77
67
0 , // row start
78
68
0 , // rotation
79
69
16 , // color depth
You can’t perform that action at this time.
0 commit comments