#include #include "Ucglib.h" #include Ucglib_ILI9341_18x240x320_SWSPI ucg(/*sclk=*/ 8, /*data=*/ 10, /*cd=*/ A0, /*cs=*/ A2, /*reset=*/ 5); //LCDWIKI_TOUCH tch(A1,8,9,10,6); //tcs,tclk,tdout,tdin,tirq void setup(void) { Serial.begin(9600); delay(1000); ucg.begin(UCG_FONT_MODE_SOLID); ucg.setRotate90(); ucg.clearScreen(); Serial.println("Cleared"); pinMode(SS, OUTPUT); // CS for flash digitalWrite(SS, HIGH); // <-- Set CS pin HIGH to deselect pinMode(D4, INPUT); Serial.println("--------------"); Serial.println(SS); Serial.println(A0); Serial.println(A1); Serial.println(A2); Serial.println(SCK); Serial.println(MISO); Serial.println(MOSI); Serial.println(D4); Serial.println("--------------"); //tch.TP_Init(90, 320, 240); SPI.setFrequency(2000000); } void loop(void) { Serial.println("Looping"); ucg.setFont(ucg_font_ncenR12_tr); ucg.setColor(255, 255, 255); ucg.setPrintPos(10 , 20); ucg.print("Lithography Settings"); ucg.setPrintPos(100 , 60); ucg.print("White"); ucg.setPrintPos(200 , 60); ucg.setColor(200, 0, 200); ucg.print("UV"); ucg.setPrintPos(10 , 100); ucg.setColor(255, 255, 255); ucg.print("Power Level: "); ucg.setPrintPos(10 , 175); ucg.print("Exposure Time: "); //tch.TP_Scan(0); //if(tch.TP_Get_State()&TP_PRES_DOWN){ // Serial.println("Touching"); //} delay(500); }