I am relatively new to the Raspberry PI platform and more experienced with Arduino.
I have noticed in the examples for Infrared Receiving and 1-Wire protocol that the Python sketches to interact with these protocols revolve around native operating system support (like LIRC and reading from the /devices
file.
Is this common in Raspberry PI?
Usually I like to access the GPIO sensors directly, in code, as opposed to reading files and pipes from the underlying file system.
I am wondering if there is a reason there aren't more direct libraries for things interface / protocol control.
So, phrased as a question: Why does Raspberry Pi rely so much on operating system support as opposed to direct python libraries to interface with 1Wire and IR ?