Skip to content

Commit c87e1a6

Browse files
committed
ok lets try without auto-display
1 parent d036620 commit c87e1a6

File tree

2 files changed

+7
-2
lines changed
  • ports/esp32s2/boards/adafruit_feather_esp32s2_tftback_nopsram

2 files changed

+7
-2
lines changed

ports/esp32s2/boards/adafruit_feather_esp32s2_tftback_nopsram/board.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "shared-module/displayio/__init__.h"
3333
#include "shared-module/displayio/mipi_constants.h"
3434

35+
/*
3536
displayio_fourwire_obj_t board_display_obj;
3637
3738
#define DELAY 0x80
@@ -46,6 +47,8 @@ uint8_t display_init_sequence[] = {
4647
0x29, 0 | DELAY, 255, // _DISPON
4748
};
4849
50+
*/
51+
4952
void board_init(void) {
5053
// USB
5154
common_hal_never_reset_pin(&pin_GPIO19);
@@ -57,6 +60,7 @@ void board_init(void) {
5760
common_hal_never_reset_pin(&pin_GPIO44);
5861
#endif /* DEBUG */
5962

63+
/*
6064
busio_spi_obj_t* spi = &displays[0].fourwire_bus.inline_bus;
6165
common_hal_busio_spi_construct(spi, &pin_GPIO36, &pin_GPIO35, NULL);
6266
common_hal_busio_spi_never_reset(spi);
@@ -68,7 +72,7 @@ void board_init(void) {
6872
&pin_GPIO40, // TFT_DC Command or data
6973
&pin_GPIO42, // TFT_CS Chip select
7074
&pin_GPIO41, // TFT_RST Reset
71-
20000000, // Baudrate
75+
4000000, // Baudrate
7276
0, // Polarity
7377
0); // Phase
7478
@@ -103,6 +107,7 @@ void board_init(void) {
103107
60, // native_frames_per_second
104108
true, // backlight_on_high
105109
false); // not SH1107
110+
*/
106111
}
107112

108113
bool board_requests_safe_mode(void) {

ports/esp32s2/boards/adafruit_feather_esp32s2_tftback_nopsram/pins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
6767
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
6868
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
6969

70-
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)}
70+
// { MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display)}
7171
};
7272
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);

0 commit comments

Comments
 (0)