changed the brightness of the middle setting from 7 to 5
This commit is contained in:
parent
d4d1f1fe71
commit
7d45508899
1 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
#define GPS_WAIT_TIME 1100
|
#define GPS_WAIT_TIME 1100
|
||||||
#define GPS_UPDATE_FREQUENCY 10 //GPS update frequency per sec
|
#define GPS_UPDATE_FREQUENCY 10 //GPS update frequency per sec
|
||||||
#define DEBOUNCE_DELAY 250 //time in ms
|
#define DEBOUNCE_DELAY 250 //time in ms
|
||||||
|
#define MIDDLE_SCREEN_BRIGHTNESS 5
|
||||||
|
|
||||||
//GPS
|
//GPS
|
||||||
SFE_UBLOX_GPS myGPS;
|
SFE_UBLOX_GPS myGPS;
|
||||||
|
|
@ -92,8 +93,8 @@ void loop() {
|
||||||
//change brightness
|
//change brightness
|
||||||
if (buttonPushed == true) {
|
if (buttonPushed == true) {
|
||||||
if (screenBrightness == 15) {
|
if (screenBrightness == 15) {
|
||||||
screenBrightness = 7;
|
screenBrightness = MIDDLE_SCREEN_BRIGHTNESS;
|
||||||
} else if (screenBrightness == 7) {
|
} else if (screenBrightness == MIDDLE_SCREEN_BRIGHTNESS) {
|
||||||
screenBrightness = 0;
|
screenBrightness = 0;
|
||||||
} else {
|
} else {
|
||||||
screenBrightness = 15;
|
screenBrightness = 15;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue