sumotoy / TFT_ST7735

A fast driver for ST7735 displays that works with Arduino's /All Teensy's/ESP8266/SPARK
69 stars 31 forks source link

Fix typos in Unkown CPU header file #34

Closed szymat closed 1 year ago

szymat commented 1 year ago

Fix typos in Unkown CPU header file.

Error:


In file included from src\main.cpp:9:
.pio\libdeps\nodemcuv2\TFT_ST7735/TFT_ST7735.h: In member function 'void TFT_ST7735::spiwrite16(uint16_t)':
.pio\libdeps\nodemcuv2\TFT_ST7735/TFT_ST7735.h:590:17: error: 'd' was not declared in this scope
  590 |    SPI.transfer(d >> 8);
      |                 ^
.pio\libdeps\nodemcuv2\TFT_ST7735/TFT_ST7735.h: In member function 'void TFT_ST7735::enableDataStream()':
.pio\libdeps\nodemcuv2\TFT_ST7735/TFT_ST7735.h:607:5: error: '__dcState' was not declared in this scope; did you mean '_dcState'?
  607 |     __dcState = 1;
      |     ^~~~~~~~~
      |     _dcState
In file included from .pio\libdeps\nodemcuv2\TFT_ST7735\TFT_ST7735.cpp:1:
.pio\libdeps\nodemcuv2\TFT_ST7735\TFT_ST7735.h: In member function 'void TFT_ST7735::spiwrite16(uint16_t)':
.pio\libdeps\nodemcuv2\TFT_ST7735\TFT_ST7735.h:590:17: error: 'd' was not declared in this scope
  590 |    SPI.transfer(d >> 8);
      |                 ^
.pio\libdeps\nodemcuv2\TFT_ST7735\TFT_ST7735.h: In member function 'void TFT_ST7735::enableDataStream()':
.pio\libdeps\nodemcuv2\TFT_ST7735\TFT_ST7735.h:607:5: error: '__dcState' was not declared in this scope; did you mean '_dcState'?
  607 |     __dcState = 1;
      |     ^~~~~~~~~
      |     _dcState
*** [.pio\build\nodemcuv2\src\main.cpp.o] Error 1
*** [.pio\build\nodemcuv2\lib4ba\TFT_ST7735\TFT_ST7735.cpp.o] Error 1```