diff --git a/src/user_code.cpp b/src/user_code.cpp index 4c93cf9..5124642 100644 --- a/src/user_code.cpp +++ b/src/user_code.cpp @@ -1,21 +1,21 @@ #include -void timer1_callback(){ - for(int i=0;i<16;i++){ - pwm_set_state(i,1); +void timer1_callback() +{ + for (int i = 0; i < 16; i++) + { + pwm_set_state(i, 1); } } -ESPMega_Timer timer1(0,50,timer1_callback,15001); +ESPMega_Timer timer1(0, 50, timer1_callback, 15001); /* This Code will run right after ESPMega PRO's Peripheral Initialization Routine */ - void user_pre_init() { - } /* @@ -45,7 +45,8 @@ This code will run every 15 seconds */ void timer_tick_callback() { - if(standalone){ + if (standalone) + { timer1.loop(); } }