Hi,
I'm playing around with a DB101 and I'd like to exit a loop once the joystick enter is pressed. The problem is that when I use _delay_ms() (in delay_x_gcc.h) it seems it only checks if the joystick enter is pressed BETWEEN delays. This makes it difficult to exit the loop, and requires luck.
How can I interrupt _delay_ms(1000) and exit the loop EVERY time the joystick enter is pressed?
I wouldn't even mind waiting 1000 ms and letting _delay_ms(1000) finish before it exits if that makes it easier.
while (!JOYSTICK_IsEnterPressed()) { _delay_ms(1000); }
Thanks,
Waspinator