diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -71,6 +71,7 @@ int main(void) ssd1306_DrawString("Hello World!", 0, 10); // ssd1306_block_write(); + uint8_t toggle = 0; while(1) { //ssd1306_block_write(); @@ -91,7 +92,14 @@ int main(void) if(!sw_btn) { GPIO_ToggleBits(LED_STAT); - ssd1306_DrawString("Douche!", 2, 10); + if(!toggle) { + ssd1306_DrawString("I freaking work!", 2, 10); + toggle = ! toggle; + } + else { + ssd1306_block_write(); + toggle = ! toggle; + } } GPIO_SetBits(LED_POWER);