mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 15:27:17 +00:00
enable all pins for cs and dc
This commit is contained in:
parent
1278682182
commit
3885a19b57
@ -343,6 +343,7 @@ uDisplay::uDisplay(char *lp) : Renderer(800, 600) {
|
||||
Serial.printf("SPED: %d\n", spi_speed*1000000);
|
||||
Serial.printf("Pixels: %d\n", col_mode);
|
||||
Serial.printf("SaMode: %d\n", sa_mode);
|
||||
Serial.printf("DMA-Mode: %d\n", lvgl_param.use_dma);
|
||||
|
||||
Serial.printf("opts: %02x,%02x,%02x\n", saw_3, dim_op, startline);
|
||||
|
||||
|
@ -68,10 +68,12 @@ enum uColorType { uCOLOR_BW, uCOLOR_COLOR };
|
||||
|
||||
#define SPI_BEGIN_TRANSACTION if (spi_nr <= 2) beginTransaction(spiSettings);
|
||||
#define SPI_END_TRANSACTION if (spi_nr <= 2) endTransaction();
|
||||
#define SPI_CS_LOW if (spi_cs >= 0) GPIO_CLR(spi_cs);
|
||||
#define SPI_CS_HIGH if (spi_cs >= 0) GPIO_SET(spi_cs);
|
||||
#define SPI_DC_LOW if (spi_dc >= 0) GPIO_CLR(spi_dc);
|
||||
#define SPI_DC_HIGH if (spi_dc >= 0) GPIO_SET(spi_dc);
|
||||
|
||||
#define SPI_CS_LOW if (spi_cs >= 0) GPIO_CLR_SLOW(spi_cs);
|
||||
#define SPI_CS_HIGH if (spi_cs >= 0) GPIO_SET_SLOW(spi_cs);
|
||||
#define SPI_DC_LOW if (spi_dc >= 0) GPIO_CLR_SLOW(spi_dc);
|
||||
#define SPI_DC_HIGH if (spi_dc >= 0) GPIO_SET_SLOW(spi_dc);
|
||||
|
||||
|
||||
#define ESP32_PWM_CHANNEL 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user