I made this code that turns off all LEDs and then deletes data. Upon deleting the data it turns on the green LEDs. However, when the code runs the user cannot 'see' the green leds turning off and then on. Is this because the MCU does these commands so fast that a human eye cannot see it?
void Calculator::calculate(Process& P,Results& R)
{
uint32_t total= P.ProcessRow();
/* Other code to be ignored */
else
{
GPIOE->ODR = GPIOE->ODR & ~((uint16_t) ALL_PINS);// turn of All LEDs
R.StoreResult(total);
P.NextRow();
R.EmptyResults();
LED[1].toggle(); // green LEDs toggling
LED[5].toggle();
}
}