pimoroni / explorer-hat

Python library for Explorer HAT
https://shop.pimoroni.com/products/explorer-hat
MIT License
163 stars 60 forks source link

fix to lib + force exit if no Analog or Touch #26

Closed RogueM closed 8 years ago

RogueM commented 8 years ago

very sorry about this, it seems I broke the lib a while back when implementing the import try clauses. This commit also forces scripts to exit if "there is no Analog or Touch' detected, i.e, probably an IOError (or user forgot to attach HAT/pHAT).