Created
September 22, 2015 00:17
-
-
Save TareObjects/b5f971e5c10eb358499a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // pin P1.6:15 - Serial data out (MOSI) | |
| // pin P1.5: 7 - Serial clock out (SCLK) | |
| // pin P5.7:17 - Data/Command select (RS or A0) | |
| // pin P2.5:19 - LCD reset (RST) | |
| // pin P3.0:18 - LCD chip select (CS) | |
| ST7565 lcd(15, 7, 17, 19, 18); | |
| void setupTaskLCD() { | |
| lcd.begin(0x1c); | |
| lcd.clear(); | |
| } | |
| void loopTaskLCD() { | |
| char sbuf[10]; | |
| lcd.clear(); | |
| for (int i = 1; i < NMAX/2; i++) { | |
| lcd.drawline(i, LCDHEIGHT-1, i, LCDBuffer[i], BLACK); | |
| } | |
| sprintf(sbuf, "%4d", FFTCounter); | |
| lcd.drawstring(10, 0, sbuf); | |
| lcd.display(); | |
| delay(100); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment