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.
Ondřej Hruška f2364966ee
added usart sync rx function
7 years ago
gex added usart sync rx function 7 years ago
.gitignore some simplifications 7 years ago
LICENSE Initial commit 7 years ago
README.md added readme 7 years ago
demo_neopixel.py implemented DIn trigger captures 7 years ago
gexync.py ndir example and added pp.skip() 7 years ago
ini_syntax.py added the ini editor 7 years ago
main.py added the ini editor 7 years ago
ndir_test.py added usart sync rx function 7 years ago
omicron_mb_test.py sipo fixes and demo 7 years ago
pymodoro.py sipÃo 7 years ago

README.md

Python client for GEX

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:


#!/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.