1
0
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:
Sermus
2015-04-02 09:50:01 +03:00
parent 4626a9df80
commit fd4215aa22
4 changed files with 17 additions and 14 deletions

View File

@ -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;