mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 02:52:05 +00:00
try higher speeds + HSPI
This commit is contained in:
parent
b10af5b659
commit
7867cf5590
@ -1526,7 +1526,7 @@ static void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_
|
|||||||
#if defined(ESP_PLATFORM) && defined(USE_ST7789)
|
#if defined(ESP_PLATFORM) && defined(USE_ST7789)
|
||||||
SPIClass SPI1(HSPI);
|
SPIClass SPI1(HSPI);
|
||||||
#elif defined(ESP_PLATFORM) && defined(USE_ST7796)
|
#elif defined(ESP_PLATFORM) && defined(USE_ST7796)
|
||||||
SPIClass SPI3(VSPI);
|
SPIClass SPI3(HSPI);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Screen::Screen(ScanI2C::DeviceAddress address, meshtastic_Config_DisplayConfig_OledType screenType, OLEDDISPLAY_GEOMETRY geometry)
|
Screen::Screen(ScanI2C::DeviceAddress address, meshtastic_Config_DisplayConfig_OledType screenType, OLEDDISPLAY_GEOMETRY geometry)
|
||||||
|
@ -840,11 +840,7 @@ void setup()
|
|||||||
// ESP32
|
// ESP32
|
||||||
SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
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);
|
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);
|
SPI.setFrequency(4000000);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize the screen first so we can show the logo while we start up everything else.
|
// Initialize the screen first so we can show the logo while we start up everything else.
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
|
|
||||||
// Used when the diplay shield is chosen
|
// Used when the diplay shield is chosen
|
||||||
#ifdef USE_ST7796
|
#ifdef USE_ST7796
|
||||||
#define LORA_SPI_FREQUENCY 1000000
|
|
||||||
|
|
||||||
#undef EXT_NOTIFY_OUT
|
#undef EXT_NOTIFY_OUT
|
||||||
#undef LED_STATE_ON
|
#undef LED_STATE_ON
|
||||||
@ -60,7 +59,7 @@
|
|||||||
#define ST7796_MISO -1
|
#define ST7796_MISO -1
|
||||||
#define ST7796_BUSY -1
|
#define ST7796_BUSY -1
|
||||||
#define VTFT_LEDA 4
|
#define VTFT_LEDA 4
|
||||||
#define TFT_SPI_FREQUENCY 500000
|
#define TFT_SPI_FREQUENCY 4000000
|
||||||
#define TFT_HEIGHT 222
|
#define TFT_HEIGHT 222
|
||||||
#define TFT_WIDTH 480
|
#define TFT_WIDTH 480
|
||||||
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes
|
#define BRIGHTNESS_DEFAULT 100 // Medium Low Brightnes
|
||||||
|
Loading…
Reference in New Issue
Block a user