mirror of
https://github.com/sanni/cartreader.git
synced 2025-02-02 23:02:37 +01:00
Make selection dot bigger
This commit is contained in:
parent
197bd3fad9
commit
dfe6624e76
@ -1300,7 +1300,7 @@ unsigned char questionBox_LCD(const __FlashStringHelper * question, char answers
|
|||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.setDrawColor(1);
|
display.setDrawColor(1);
|
||||||
display.drawPixel(0, 8 * choice + 12);
|
display.drawBox(1, 8 * choice + 11, 3, 3);
|
||||||
display.updateDisplay();
|
display.updateDisplay();
|
||||||
|
|
||||||
unsigned long idleTime = millis();
|
unsigned long idleTime = millis();
|
||||||
@ -1336,7 +1336,7 @@ unsigned char questionBox_LCD(const __FlashStringHelper * question, char answers
|
|||||||
|
|
||||||
// remove selection box
|
// remove selection box
|
||||||
display.setDrawColor(0);
|
display.setDrawColor(0);
|
||||||
display.drawPixel(0, 8 * choice + 12);
|
display.drawBox(1, 8 * choice + 11, 3, 3);
|
||||||
display.updateDisplay();
|
display.updateDisplay();
|
||||||
|
|
||||||
if ((choice == 0) && (filebrowse == 1)) {
|
if ((choice == 0) && (filebrowse == 1)) {
|
||||||
@ -1359,7 +1359,7 @@ unsigned char questionBox_LCD(const __FlashStringHelper * question, char answers
|
|||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.setDrawColor(1);
|
display.setDrawColor(1);
|
||||||
display.drawPixel(0, 8 * choice + 12);
|
display.drawBox(1, 8 * choice + 11, 3, 3);
|
||||||
display.updateDisplay();
|
display.updateDisplay();
|
||||||
|
|
||||||
// change RGB led to the color of the current menu option
|
// change RGB led to the color of the current menu option
|
||||||
@ -1373,7 +1373,7 @@ unsigned char questionBox_LCD(const __FlashStringHelper * question, char answers
|
|||||||
|
|
||||||
// remove selection box
|
// remove selection box
|
||||||
display.setDrawColor(0);
|
display.setDrawColor(0);
|
||||||
display.drawPixel(0, 8 * choice + 12);
|
display.drawBox(1, 8 * choice + 11, 3, 3);
|
||||||
display.updateDisplay();
|
display.updateDisplay();
|
||||||
|
|
||||||
if ((choice == num_answers - 1 ) && (numPages > currPage) && (filebrowse == 1)) {
|
if ((choice == num_answers - 1 ) && (numPages > currPage) && (filebrowse == 1)) {
|
||||||
@ -1386,7 +1386,7 @@ unsigned char questionBox_LCD(const __FlashStringHelper * question, char answers
|
|||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.setDrawColor(1);
|
display.setDrawColor(1);
|
||||||
display.drawPixel(0, 8 * choice + 12);
|
display.drawBox(1, 8 * choice + 11, 3, 3);
|
||||||
display.updateDisplay();
|
display.updateDisplay();
|
||||||
|
|
||||||
// change RGB led to the color of the current menu option
|
// change RGB led to the color of the current menu option
|
||||||
@ -1606,7 +1606,7 @@ unsigned char questionBox_OLED(const __FlashStringHelper * question, char answer
|
|||||||
choice = default_choice;
|
choice = default_choice;
|
||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.drawPixel(0, 8 * choice + 12, WHITE);
|
display.fillRect(0, 8 * choice + 10, 3, 4, WHITE);
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
unsigned long idleTime = millis();
|
unsigned long idleTime = millis();
|
||||||
@ -1641,7 +1641,7 @@ unsigned char questionBox_OLED(const __FlashStringHelper * question, char answer
|
|||||||
idleTime = millis();
|
idleTime = millis();
|
||||||
|
|
||||||
// remove selection box
|
// remove selection box
|
||||||
display.drawPixel(0, 8 * choice + 12, BLACK);
|
display.fillRect(0, 8 * choice + 10, 3, 4, BLACK);
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
if ((choice == 0) && (filebrowse == 1)) {
|
if ((choice == 0) && (filebrowse == 1)) {
|
||||||
@ -1663,7 +1663,7 @@ unsigned char questionBox_OLED(const __FlashStringHelper * question, char answer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.drawPixel(0, 8 * choice + 12, WHITE);
|
display.fillRect(0, 8 * choice + 10, 3, 4, WHITE);
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
// change RGB led to the color of the current menu option
|
// change RGB led to the color of the current menu option
|
||||||
@ -1676,7 +1676,7 @@ unsigned char questionBox_OLED(const __FlashStringHelper * question, char answer
|
|||||||
idleTime = millis();
|
idleTime = millis();
|
||||||
|
|
||||||
// remove selection box
|
// remove selection box
|
||||||
display.drawPixel(0, 8 * choice + 12, BLACK);
|
display.fillRect(0, 8 * choice + 10, 3, 4, BLACK);
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
if ((choice == num_answers - 1 ) && (numPages > currPage) && (filebrowse == 1)) {
|
if ((choice == num_answers - 1 ) && (numPages > currPage) && (filebrowse == 1)) {
|
||||||
@ -1688,7 +1688,7 @@ unsigned char questionBox_OLED(const __FlashStringHelper * question, char answer
|
|||||||
choice = (choice + 1) % num_answers;
|
choice = (choice + 1) % num_answers;
|
||||||
|
|
||||||
// draw selection box
|
// draw selection box
|
||||||
display.drawPixel(0, 8 * choice + 12, WHITE);
|
display.fillRect(0, 8 * choice + 10, 3, 4, WHITE);
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
// change RGB led to the color of the current menu option
|
// change RGB led to the color of the current menu option
|
||||||
|
Loading…
x
Reference in New Issue
Block a user