mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
CS is now software controlled. Otherwise ESP has problems with receiving data over SPI
This commit is contained in:
@ -26,7 +26,11 @@
|
||||
|
||||
void TFT::TFTinit (void)
|
||||
{
|
||||
pinMode(2, OUTPUT);
|
||||
pinMode(4, OUTPUT);
|
||||
pinMode(15, OUTPUT);
|
||||
SPI.begin();
|
||||
SPI.setClockDivider(2);
|
||||
|
||||
TFT_CS_HIGH;
|
||||
TFT_DC_HIGH;
|
||||
|
Reference in New Issue
Block a user