pimoroni / flotilla-python

Python library for the Pimoroni Flotilla plug-and-play electronics ecosystem
MIT License
25 stars 15 forks source link

more examples added #24

Closed tanyafish closed 7 years ago

tanyafish commented 7 years ago

Added more examples to go with education projects

RogueM commented 7 years ago

I'll check those on Friday. I would recommend always checking for module availability and exit if they are missing. Failing that, the client will lock the python process and there is no way to exit.

... see the latest examples that include a try-except blocks for this purpose, before the code intended to be run is started.

RogueM commented 7 years ago

going to merge and add those safeguards, no need for you to do it, it was a comment for future examples and general advise to not take for granted that users will have the necessary modules hooked up when they fire up your scripts - due to the modular nature of Flotilla, chances are they won't.