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

14 lines
251 B

import gex
class Pin(gex.Unit):
def __init__(self, client, name):
super().__init__(client, name, 'PIN')
def off(self):
self.send(0x00)
def on(self):
self.send(0x01)
def toggle(self):
self.send(0x02)