Roughly functioning menu system

Has some functionality issues
Still need settings saving & movement detection
This commit is contained in:
Ben V. Brown
2016-09-21 11:19:41 +10:00
parent f4d5b8b000
commit c6559312f0
6 changed files with 81 additions and 26 deletions

View File

@@ -187,7 +187,7 @@ void OLED_DrawChar(char c, uint8_t x) {
* Draw a 2 digit number to the display
* */
void OLED_DrawTwoNumber(uint8_t in, uint8_t x) {
OLED_DrawChar(in / 10, x);
OLED_DrawChar((in / 10)%10, x);
OLED_DrawChar(in % 10, x + 14);
}
void OLED_DrawThreeNumber(uint16_t in, uint8_t x) {