Skip to content

Instantly share code, notes, and snippets.

@TakehikoShimojima
Created June 23, 2018 02:21
Show Gist options
  • Select an option

  • Save TakehikoShimojima/b1022cb63b566a661d32b84f3188c9d2 to your computer and use it in GitHub Desktop.

Select an option

Save TakehikoShimojima/b1022cb63b566a661d32b84f3188c9d2 to your computer and use it in GitHub Desktop.
class EnvSensor(Thread, Peripheral):
def __init__(self, dev):
Peripheral.__init__(self)
Thread.__init__(self)
self.setDaemon(True)
self.dev = dev
self.am = ambient.Ambient(channelID, writeKey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment