@@ -77,17 +77,12 @@ int main(void)
// Init clocks
SystemInit();
// Init GPIO
init_gpio();
// Init USB
//Set_USBClock();
//USB_Interrupts_Config();
//USB_Init();
// Turn on power LED
GPIO_SetBits(LED_POWER);
// TODO: Awesome pwm of power LED (TIM4_CH4 or TIM11_CH1)
// Configure 1ms SysTick (change if more temporal resolution needed)
@@ -105,18 +100,21 @@ int main(void)
// Check for problems on startup
if(clock_fail) {
ssd1306_DrawString("ERROR: Check Xtal", 3, 0);
delay(2000);
}
// Set_USBClock();
// USB_Interrupts_Config();
// USB_Init();
// Startup screen
ssd1306_DrawString("therm v0.1", 1, 40);
ssd1306_DrawString("protofusion.org/therm", 3, 0);
delay(1500);
ssd1306_clearscreen();
restore_settings();
if(boottobrew)
state = STATE_PREHEAT_BREW; // Go to brew instead of idle if configured thusly
Status change: