Python client for GEX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gex-client-py/gex/units/Pin.py

17 lines
267 B

import gex
class Pin(gex.Unit):
def _type(self):
return 'PIN'
def on_event(self, event:int, payload):
pass
def off(self):
self.send(0x00)
def on(self):
self.send(0x01)
def toggle(self):
self.send(0x02)