Hi ,
i'm making a robot wich will have two mods automatic/manual , i will controll the robot with a laptop through bluetooth . i did program the two mods but to switch between them i need to wait until function of the mod finish , what i want is to be able to switch between the two mods anytime i want , i think the solution will be an interrupt, every time i send data through bluetooth it interrupt the current mod ,
but i can't figure out how to do it.