Closed Gadgetoid closed 6 years ago
This PR makes several "friendly neighbour" changes to the pHAT BEAT library:
See here for details of the problems import-time side-effects can have: https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=193502&p=1212488#p1212488
Needs to drop ensure_setup() and just have setup() set an _is_setup flag and not run any of the actual setup routines twice. The current method is unnecessarily convoluted.
ensure_setup()
setup()
_is_setup
This PR makes several "friendly neighbour" changes to the pHAT BEAT library:
See here for details of the problems import-time side-effects can have: https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=193502&p=1212488#p1212488