Skip to content

Commit 2b7753f

Browse files
dcuartiellescmaglie
dcuartielles
authored andcommitted
fixed the classic fix vs stroke issue after migrating to the TFT library
1 parent b91e630 commit 2b7753f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Robot_Control/examples/explore/R03_Disco_Bot/R03_Disco_Bot.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,17 @@ void parseCommand(char dir, char duration) {
148148
// display the song
149149
void setInterface() {
150150
Robot.clearScreen();
151-
Robot.fill(0, 0, 0);
151+
Robot.stroke(0, 0, 0);
152152
Robot.text(musics[0], 0, 0);
153153
}
154154

155155
// display the next song
156156
void select(int seq, boolean onOff) {
157157
if(onOff){//select
158-
Robot.fill(0, 0, 0);
158+
Robot.stroke(0, 0, 0);
159159
Robot.text(musics[seq], 0, 0);
160160
}else{//deselect
161-
Robot.fill(255, 255, 255);
161+
Robot.stroke(255, 255, 255);
162162
Robot.text(musics[seq], 0, 0);
163163
}
164164
}

0 commit comments

Comments
 (0)