added readme

doublebuf
Ondřej Hruška 7 years ago
parent d029c2a5fe
commit 732c6ff58c
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 30
      README.md
  2. 1
      main.py

@ -1,2 +1,28 @@
# GEX-Client-Py # Python client for GEX
Python client for GEX. / W.I.P. / Bugs abundant
This is the primary GEX front-end for user scripting.
GEX configuration can be persisted on-chip or loaded dynamically using
the client from a INI file or string.
A sample GEX script could look like this:
```python
#!/bin/env python3
import time
import gex
client = gex.Client()
led = gex.Pin(client, 'LED')
for i in range(0,10):
led.toggle()
time.sleep(.1)
```
The client instance can be used to send control commands directly, bypassing the unit drivers.
Writing new unit drivers is simple and straightforward. See any of the existing units for reference.

@ -1,6 +1,5 @@
#!/bin/env python3 #!/bin/env python3
import time import time
import gex import gex
client = gex.Client() client = gex.Client()

Loading…
Cancel
Save