I have a database with table pins with atributes pinNo, pinMode and pinState. I'm trying to read these raspberry pi's atributes using wiringPi in python script, and to write that data into the table in the database. I'm wondering how can I read/get pin mode? I've been searching over the internet and reading wiringPi's documentation but I haven't found any method implemented for this purpose. Is there any way to do this "manually" using python?
closed as off-topic by goldilocks♦ Oct 12 '15 at 21:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – goldilocks