metachris / RPIO

RPIO is a GPIO toolbox for the Raspberry Pi.
https://pypi.python.org/pypi/RPIO
GNU Lesser General Public License v3.0
331 stars 147 forks source link

Enhance compatibility with unknown board and unknown GPIO state (test keys before accessing dictionaries) #84

Closed doom-fr closed 8 years ago

doom-fr commented 8 years ago

Added tests on keys of GPIO_FUNCTIONS and MODEL_DATA before getting values. This make errors disappears with rasp v3. Only tested with rpio and rpio-curses

doom-fr commented 8 years ago

I have started another from Yackou one and this later works well.