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/main.py

23 lines
374 B

7 years ago
#!/bin/env python3
import time
import gex
7 years ago
7 years ago
client = gex.Client()
7 years ago
if False:
s = client.ini_read()
client.ini_write(s)
if False:
7 years ago
buf = client.bulk_read(gex.MSG_INI_READ)
print(buf.decode('utf-8'))
7 years ago
client.bulk_write(gex.MSG_INI_WRITE, buf)
if True:
led = gex.Pin(client, 'LED')
for i in range(0,10):
led.toggle()
time.sleep(.1)