Xinyuan-LilyGO / T-Wristband

DIY Programmable Bracelet
311 stars 98 forks source link

2 Minor bugs in RTC_Show #23

Open mikeprice99 opened 3 years ago

mikeprice99 commented 3 years ago

(Using T-Wristband-LSM9DS1.ino for line numbers ...) In RTC_Show function:

1/ line 690 = tft.setTextColor(0xFBE0, TFT_BLACK); // Orange but by setting background color the 'ghost' image is overwritten. So the line should be tft.setTextColor(0xFBE0); // Orange

2/ line 704, setting the color for drawing the colon is in the wrong block, causing the colon to be displayed in the wrong color if the voltage has changed within the current minute. currently = if (ss % 2) { // Flash the colon tft.setTextColor(0x39C4, TFT_BLACK); xpos += tft.drawChar(':', xcolon, ypos, 7); tft.setTextColor(0xFBE0, TFT_BLACK); } else { tft.drawChar(':', xcolon, ypos, 7); }

should be if (ss % 2) { // Flash the colon tft.setTextColor(0x39C4, TFT_BLACK); xpos += tft.drawChar(':', xcolon, ypos, 7); } else { tft.setTextColor(0xFBE0, TFT_BLACK); tft.drawChar(':', xcolon, ypos, 7); }