How can I make an multitasking code?
Task nr 1. Button state indicator, Wifi(web interface) and Bluetooth(to phone app).
Task nr 2. Blink RGB leds, controlled by task nr 1.
Task nr 3. GPS data logger, controlled by task nr 1.
All the task must run at the same time with no delay, The RGB Leds are flashing 1-5 times per second and the GPS data is received at 1Hz to 10Hz and stored in SD card.