Compare commits
No commits in common. "eb87f77d0a195c55fb09f991eab968454c84e52b" and "262d49921eb002539ee156287bf01abc67a7242f" have entirely different histories.
eb87f77d0a
...
262d49921e
2 changed files with 4 additions and 6 deletions
|
@ -35,8 +35,6 @@ impl Lcd {
|
|||
0xEE, // (18) Reset Cursor Update Mode
|
||||
0x81, // (9) Set Electronic Volume: Set Contrast
|
||||
nb::block!(eeprom::read_byte(&CONTRAST)).unwrap(), // (9) Set Electronic Volume: Set Contrast
|
||||
0xFA, // (25) Set Adv. Program Control 0: Set Temperature compensation curve to -0.11%/°C
|
||||
0x90, // (25) Set Adv. Program Control 0: Set Temperature compensation curve to -0.11%/°C
|
||||
0xAF, // (12) Set Display Enable: Display on
|
||||
];
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ impl Setup {
|
|||
Selection::BacklightEdit => match input {
|
||||
Input::Next => {
|
||||
self.backlight = if self.backlight == u8::MAX {
|
||||
u8::MAX
|
||||
u8::MIN
|
||||
} else {
|
||||
self.backlight + 1
|
||||
};
|
||||
|
@ -44,7 +44,7 @@ impl Setup {
|
|||
}
|
||||
Input::Previous => {
|
||||
self.backlight = if self.backlight == u8::MIN {
|
||||
u8::MIN
|
||||
u8::MAX
|
||||
} else {
|
||||
self.backlight - 1
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ impl Setup {
|
|||
Selection::ContrastEdit => match input {
|
||||
Input::Next => {
|
||||
self.contrast = if self.contrast >= 63 {
|
||||
63
|
||||
u8::MIN
|
||||
} else {
|
||||
self.contrast + 1
|
||||
};
|
||||
|
@ -79,7 +79,7 @@ impl Setup {
|
|||
}
|
||||
Input::Previous => {
|
||||
self.contrast = if self.contrast == u8::MIN {
|
||||
u8::MIN
|
||||
63
|
||||
} else {
|
||||
self.contrast - 1
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue