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.
|
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)
|
|
|