hello homies i have a horrible problem that i dont know how to resolve,
The data that i ask to see on the TFT coming for the serial USB scroll on the screen with another amount of data that i didnt ask for,
an example:i ask for the name of the cpu like this
myGLCD.print('cpuName',60,0);
then i see all the data coming for the hardware monitor usb like the name of the gpu,temps and all that info that i didnt ask for¡and also scrolling on the screen¡¡
i use the UTFT library,arduino UNO board and the TFT ILI9846
the only data that scroll is the data that comes from the PC stats hardware monitor 1.1,the data printed using
myGLCD.Print("CPU",0,0)
its respresented well and dont scroll
i can see the first data on the screen bu for some strange reason the data that i obtain don't stop of scrolling on the TFT constantly and i dont know how to stop it,you will see errors on the sketch for sure
youtube video
and my disturbing sketch
#include <Wire.h>
#include <SPI.h>
#include <UTFT.h>
String cpuName = "";
String inputString = "";
boolean NewData = false;
extern uint8_t BigFont[];
UTFT myGLCD(ILI9486,A5,A4,A3,A2);
void setup(){
Serial.begin(9600);
inputString.reserve(600);
myGLCD.InitLCD();
myGLCD.setFont(BigFont);
myGLCD.setBrightness(16);
myGLCD.setContrast(64);
myGLCD.fillScr(VGA_BLACK);
}
void loop(){
if (NewData){
NewData = false;
myGLCD.print("CPU",0,0);
myGLCD.print('cpuName',60,0);
myGLCD.print("FRQ",0,30);
myGLCD.print('frq',60,30);
myGLCD.print("GPU",0,60);
myGLCD.print('gpuName',60,60);
myGLCD.print("Memory Usage :",0,90);
myGLCD.print("SYSRAM",0,120);
}}
int b[8];// b #0
void serialEvent() {
while (Serial.available()) { // 32u4 USB Serial Available?
char inChar = (char)Serial.read(); // Read 32u4 USB Serial
//Serial.print(inChar); // !!!!Debug Incoming Serial, if this is left running a buffer overflow will occur!!!!
inputString += inChar;
if (inChar == '|') {
NewData = true;
}}}