Nov-29-2017, 04:03 PM
And another thought, cant you not read the current status of the PIN. For instance, check if the PIN is set HIGH or LOW by just reading right bit from the memory. Because most GPIO pins must memory mapped and reading relevant memory should give you the state? This way you could avoid creating a file to store the state?
Useless reading PIN values is not an option?
Useless reading PIN values is not an option?