I'm making a robot for autonomous driving in a compotition, converted RC car. But just for having some fun I'm also converting a Playstation 2 controller into a remote controll, so I can drive the car as a RC car.
My question is. Is there a way for my RX arduino to check if there is a nrf24l01 chip connected. That way I don't need to reprogram the RX arduino between the autonomous and RC sketch. The sketches is almost done as separate sketches, I just need to make my new hardware, the old car was rubbish so I'm converting a better car now.
I know that I can use IFDEF to load different configuration, but how can I dismiss everything that is assosiated with the nrf24l01 setup? I have a separate tab in the IDE conserning the nrf24l01.
The only thing I have used IFDEF with is debugging so far.
Using the Mirf library
Thanks Kjell B