holmes4:
Its not "special" in any way. Just normal SPI. CS, MOSI(SDI), SDO, SCK, those are the standard SPI pins.Mark
ok, actually, comparing with this SPI LCD(LCD display with ILI9341 driver on Arduino - Displays - Arduino Forum), there is not D/C pin at my SPI LCD .
if i want write cmd, i can do it like this:
void TFT::sendCMD(INT8U cmd)
{
digitalWrite(pin_cs, LOW);
digitalWrite(pin_sck, LOW);
digitalWrite(pin_sdi, LOW);
digitalWrite(pin_sck, HIGH);
SPI.transfer(cmd);
digitalWrite(pin_cs, HIGH);
}
I don't know whether i can write this function in TFT.cpp, because digitalWrite() is used in *.ino file.
so, i need one way(like this: ) to set CS, SCK, SDI Pin's HIGH and LOW ouput ![]()