mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Add little C and F logos & arrow for boost
This commit is contained in:
@@ -459,7 +459,7 @@ void DrawUI() {
|
||||
|
||||
//Now draw symbols
|
||||
if (StatusFlags == 8)
|
||||
OLED_DrawChar('B', 4);
|
||||
OLED_DrawExtraFontChars(2,4);
|
||||
else {
|
||||
OLED_DrawChar(' ', 4);
|
||||
}
|
||||
@@ -477,13 +477,15 @@ void DrawUI() {
|
||||
cellV -= 33; //Should leave us a number of 0-9
|
||||
if (cellV > 9)
|
||||
cellV = 9;
|
||||
OLED_DrawExtendedChar(cellV + 1, 5);
|
||||
OLED_DrawSymbolChar(cellV + 1, 5);
|
||||
}
|
||||
|
||||
if (systemSettings.displayTempInF) {
|
||||
OLED_DrawChar(SettingTempFChar, 3);
|
||||
//OLED_DrawChar(SettingTempFChar, 3);
|
||||
OLED_DrawExtraFontChars(0,3);
|
||||
} else {
|
||||
OLED_DrawChar(SettingTempCChar, 3);
|
||||
//OLED_DrawChar(SettingTempCChar, 3);
|
||||
OLED_DrawExtraFontChars(1,3);
|
||||
}
|
||||
//Optionally draw the arrows, or draw the power instead
|
||||
if (systemSettings.powerDisplay) {
|
||||
|
||||
@@ -207,7 +207,7 @@ void OLED_DrawChar(char c, uint8_t x) {
|
||||
offset = c - ' ';
|
||||
} else if (c >= 0xA0) {
|
||||
ptr = (u8*) FontLatin2;
|
||||
offset = c-0xA0;//this table starts at 0xA0
|
||||
offset = c - 0xA0; //this table starts at 0xA0
|
||||
} else
|
||||
return; //not in font
|
||||
|
||||
@@ -216,8 +216,14 @@ void OLED_DrawChar(char c, uint8_t x) {
|
||||
|
||||
Oled_DrawArea(x, 0, FONT_WIDTH, 16, (u8*) ptr);
|
||||
}
|
||||
void OLED_DrawExtendedChar(uint8_t id, uint8_t x) {
|
||||
u8* ptr = (u8*) extendedFont;
|
||||
void OLED_DrawExtraFontChars(uint8_t id, uint8_t x) {
|
||||
u8* ptr = (u8*) ExtraFontChars;
|
||||
ptr += (id) * (FONT_WIDTH * 2);
|
||||
x *= FONT_WIDTH; //convert to a x coordinate
|
||||
Oled_DrawArea(x, 0, FONT_WIDTH, 16, (u8*) ptr);
|
||||
}
|
||||
void OLED_DrawSymbolChar(uint8_t id, uint8_t x) {
|
||||
u8* ptr = (u8*) FontSymbols;
|
||||
ptr += (id) * (FONT_WIDTH * 2);
|
||||
x *= FONT_WIDTH; //convert to a x coordinate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user