I'm writing a Raspberry Pi program, to run stuff, take inputs from sensors, save in database and synchronise to a server.
Is there a way to test it on the PC before deploying it to the Raspberry Pi? Because there are too many GPIO operations, I want to make sure it works before putting it on the Raspberry Pi. Some sort of a GPIO emulator or something. I'm on Manjaro Linux.
It doesn't have to be emulator, some sort of an IDE capable of understanding GPIO functions. For instance, a possible output would be:
gpio 1 is running, sensor 1 is running sensor 2 isn't running
Something like that, perhaps a Bpython plugin or something. All I want to do is make sure that all my GPIO functions are working the way I want them to work before testing on the Raspberry Pi, because many times, errors on the Raspberry Pi has to do with me not connecting parts correctly. And I don't like to code and fix bugs on the Raspberry Pi.
So if I can verify my script is working correctly on my PC, I can go to the Raspberry Pi, knowing that my script is fine and fix stuff on the board. I just don't want to test my script on the Raspberry Pi anymore.