I'm wondering what the recommended way is, to read a GPIO pin set to input after start-up. Here's my use case:
I've an Arduino which is setting a digital pin to high and there's a wire which connects the Ardino's digital pin to a GPIO pin on the Omega. When the Omega detects a high on the input pin it is supposed to run an ash command.
Right now, I'm doing this by starting a python script which loops continuously until it detects a high on the pin and then fires of the ash command. Even though I've a python command which is calling this file from the
rc.local file, which was supposed to run the python script on-boot, that doesn't happen and I have to manually start the script using
How do I ensure that
rc.local is actually starting my python script? Is this the right way to read a pin on-boot? Because it seems a bit convoluted for something so simple.