diff --git a/src/main.c b/src/main.c index 61a6d62..cb1420b 100644 --- a/src/main.c +++ b/src/main.c @@ -79,10 +79,16 @@ int main(void) timebase_ms += 1000 / SYSTICK_FREQ; - //uint32_t timebase_ms_fast = timebase_ms & 0xFFFFFFFF; + uint32_t timebase_ms_fast = timebase_ms & 0xFFFFFFFF; - // start the measurement in the background. - temp_sensor_trigger_update(); + if(timebase_ms_fast <= 1000) { + if((timebase_ms_fast % 100) == 0) { + gpio_toggle(LED_PORT, LED_PIN); + } + } else { + // start the measurement in the background. + temp_sensor_trigger_update(); + } } // check for completion of a measurement