File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
ports/espressif/boards/adafruit_esp32s2_camera Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 32
32
#include "shared-bindings/microcontroller/Pin.h"
33
33
#include "shared-module/displayio/__init__.h"
34
34
#include "shared-module/displayio/mipi_constants.h"
35
+ #include "shared-bindings/board/__init__.h"
35
36
36
37
#include "esp_log.h"
37
38
@@ -54,10 +55,7 @@ void board_init(void) {
54
55
common_hal_never_reset_pin (& pin_GPIO19 );
55
56
common_hal_never_reset_pin (& pin_GPIO20 );
56
57
57
- busio_spi_obj_t * spi = & displays [0 ].fourwire_bus .inline_bus ;
58
- common_hal_busio_spi_construct (spi , & pin_GPIO36 , & pin_GPIO35 , NULL );
59
- common_hal_busio_spi_never_reset (spi );
60
-
58
+ busio_spi_obj_t * spi = common_hal_board_create_spi ();
61
59
displayio_fourwire_obj_t * bus = & displays [0 ].fourwire_bus ;
62
60
bus -> base .type = & displayio_fourwire_type ;
63
61
common_hal_displayio_fourwire_construct (bus ,
You can’t perform that action at this time.
0 commit comments