/*
IDE 1.5.4 works fine but IDE 1.6.5 'NO TFT sceen at all':
ARDUINO DUE with
CTE TFT LCD/SD Shield for ARDUINO DUE
SainSmart 2.8 inch 240x320 TFT shield CTE28
Oscilloscope Test. works only with IDE 1.5.4 but not with 1.6.5
*/
#include <UTFT.h>
// Uncomment the next line for Arduino DUE
UTFT myGLCD(CTE28,25,26,27,28);
uint16_t sample[321];
void setup() {
myGLCD.InitLCD();
myGLCD.clrScr();
myGLCD.setColor(255, 255, 255);
}
void loop() {
for (uint16_t i = 1; i < 320; i++) {
sample = analogRead(A0);
- }*
- if (sample[319] > 512) {*
- myGLCD.clrScr();*
- for (uint16_t i = 1; i < 319; i++) {*
_ myGLCD.drawLine (i, 120 - sample*, i + 1, 120 - sample[i + 1]);_
_ }_
_ }_
_}*_