Hi. I have a program where one microbit board is blinking (dim up / down) some neopixel led’s. It should leave the “while” loop when its radio module receives a certain message, thus setting the “Rx_side_valg” to eigher “1” or “2”. The “while” loop condition should no longer be present and the program should leave the loop.
However the program stays in the loop and completely ignores the radio input,and just keeps on fading the led’s up and down.
But if it receives the message BEFORE the “while” loop, it jumps over the loop and continues on.
So BEFORE the loop it listens to the incoming radio signals, but completely ignores them in the loop. I have tried changing the delays to 1000us, but still it gets stuck in the loop.
How can I force it to listen to the radio even when it is in the loop?