1
0
forked from me/IronOS

Massively better font

Moved to a newer font.
First stage of improving screen
This commit is contained in:
Ben V. Brown
2017-08-08 18:09:07 +10:00
parent 42e6818114
commit 1822cece90
8 changed files with 149 additions and 115 deletions

View File

@@ -28,8 +28,7 @@ int main(void) {
OLED_SetOrientation(!getOrientation());
RotationChangedFlag = 0;
}
if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_3) == Bit_RESET) {
else if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_3) == Bit_RESET) {
OLED_SetOrientation(!getOrientation());
RotationChangedFlag = 0;
//^ This is a workaround for the IRQ being set off before we have the handler setup and enabled.
@@ -64,6 +63,16 @@ void setup() {
OLED_DrawString("VER 1.16", 8); //Version Number
delayMs(400); //Pause to show version number
showBootLogoIfavailable();
//RESETs settings
if (GPIO_ReadInputDataBit(GPIOA, KEY_B) == Bit_RESET) {
OLED_DrawString("Reset ?", 8);
delayMs(1000);
if (GPIO_ReadInputDataBit(GPIOA, KEY_B) == Bit_RESET) {
OLED_DrawString(" OK ", 8);
delayMs(1000);
resetSettings();
}
}
Start_Watchdog(5000); //start the system watch dog as 5 second timeout
}