try higher speeds + HSPI

This commit is contained in:
nasimovy 2025-04-16 17:36:58 +00:00
parent b10af5b659
commit 7867cf5590
3 changed files with 2 additions and 7 deletions

View File

@ -1526,7 +1526,7 @@ static void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_
#if defined(ESP_PLATFORM) && defined(USE_ST7789)
SPIClass SPI1(HSPI);
#elif defined(ESP_PLATFORM) && defined(USE_ST7796)
SPIClass SPI3(VSPI);
SPIClass SPI3(HSPI);
#endif
Screen::Screen(ScanI2C::DeviceAddress address, meshtastic_Config_DisplayConfig_OledType screenType, OLEDDISPLAY_GEOMETRY geometry)

View File

@ -840,11 +840,7 @@ void setup()
// ESP32
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
LOG_DEBUG("SPI.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
#if defined(TBEAM_V10) && defined(USE_ST7796)
SPI.setFrequency(LORA_SPI_FREQUENCY);
#else
SPI.setFrequency(4000000);
#endif
#endif
// Initialize the screen first so we can show the logo while we start up everything else.

View File

@ -46,7 +46,6 @@
// Used when the diplay shield is chosen
#ifdef USE_ST7796
#define LORA_SPI_FREQUENCY 1000000
#undef EXT_NOTIFY_OUT
#undef LED_STATE_ON
@ -60,7 +59,7 @@
#define ST7796_MISO -1
#define ST7796_BUSY -1
#define VTFT_LEDA 4
#define TFT_SPI_FREQUENCY 500000
#define TFT_SPI_FREQUENCY 4000000
#define TFT_HEIGHT 222
#define TFT_WIDTH 480
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes