change default display to ILI

pull/9/head
jean-marcharvengt 2019-08-21 16:42:06 +02:00
rodzic f775ae32f0
commit 42313db730
34 zmienionych plików z 115 dodań i 31 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,7 +1,7 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
//#define LINEARINT_HACK 1
#define LINEARINT_HACK 1
//#define FLIP_SCREEN 1
//#define TFT_DEBUG 1

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,7 +1,7 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
//#define LINEARINT_HACK 1
#define LINEARINT_HACK 1
//#define FLIP_SCREEN 1
//#define TFT_DEBUG 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,7 +1,7 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
//#define LINEARINT_HACK 1
#define LINEARINT_HACK 1
//#define FLIP_SCREEN 1
//#define TFT_DEBUG 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1

Wyświetl plik

@ -426,13 +426,19 @@ void TFT_T_DMA::stopDMA(void) {
delay(50);
cancelled = false;
dmatx.detachInterrupt();
fillScreen(RGBVAL16(0x00,0x00,0x00));
SPI.end();
#ifdef ST7789
begin();
#endif
#ifdef ILI9341
SPI.begin();
digitalWrite(_cs, 0);
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE));
SPI.endTransaction();
digitalWrite(_cs, 1);
digitalWrite(_dc, 1);
#endif
setArea(0, 0, TFT_REALWIDTH-1, TFT_REALHEIGHT-1);
}

Wyświetl plik

@ -1,5 +1,5 @@
#define ST7789 1
//#define ILI9341 1
//#define ST7789 1
#define ILI9341 1
#define TFT_LINEARINT 1
#define LINEARINT_HACK 1