We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello I'm trying to get data from Arduino to G4P GUI. I have created interface with G4P GUI Builder and connected Arduino board to this program. However when I start the program and get data from Arduino to Label I see white borders around the value and also it doesn't erase previous text so after few iterations label looks like a mess. Loop code:
void draw(){
label1.setText("");
label1.setText(str(arduino_value));
}
How can I fix it? Thanks in advance
Answers
You must clear the background at the start of the draw method e.g.