mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
fixed the classic fix vs stroke issue after migrating to the TFT library
This commit is contained in:
parent
b91e6308bd
commit
2b7753ffc7
@ -148,17 +148,17 @@ void parseCommand(char dir, char duration) {
|
|||||||
// display the song
|
// display the song
|
||||||
void setInterface() {
|
void setInterface() {
|
||||||
Robot.clearScreen();
|
Robot.clearScreen();
|
||||||
Robot.fill(0, 0, 0);
|
Robot.stroke(0, 0, 0);
|
||||||
Robot.text(musics[0], 0, 0);
|
Robot.text(musics[0], 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// display the next song
|
// display the next song
|
||||||
void select(int seq, boolean onOff) {
|
void select(int seq, boolean onOff) {
|
||||||
if(onOff){//select
|
if(onOff){//select
|
||||||
Robot.fill(0, 0, 0);
|
Robot.stroke(0, 0, 0);
|
||||||
Robot.text(musics[seq], 0, 0);
|
Robot.text(musics[seq], 0, 0);
|
||||||
}else{//deselect
|
}else{//deselect
|
||||||
Robot.fill(255, 255, 255);
|
Robot.stroke(255, 255, 255);
|
||||||
Robot.text(musics[seq], 0, 0);
|
Robot.text(musics[seq], 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user