1
0
Fork 0
Python client for GEX
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Ondřej Hruška d8cf016f87
added dac driver support
8 anos atrás
gex added dac driver support 8 anos atrás
.gitignore example with auto + cleaning 8 anos atrás
LICENSE Initial commit 8 anos atrás
README.md added readme 8 anos atrás
demo_ndir_leds.py example with auto + cleaning 8 anos atrás
demo_ndir_usart.py example with auto + cleaning 8 anos atrás
demo_neo2.py support for DOut pulse gen 8 anos atrás
demo_neopixel.py example with auto + cleaning 8 anos atrás
demo_pulse.py support for DOut pulse gen 8 anos atrás
demo_pymodoro.py example with auto + cleaning 8 anos atrás
gexync.py ndir example and added pp.skip() 8 anos atrás
ini_syntax.py added the ini editor 8 anos atrás
main.py added the ini editor 8 anos atrás
test_adc.py support for DOut pulse gen 8 anos atrás
test_dac.py added dac driver support 8 anos atrás
test_freq_cap.py example with auto + cleaning 8 anos atrás
test_onewire.py example with auto + cleaning 8 anos atrás
test_pwmdim_music.py example with auto + cleaning 8 anos atrás
test_pwmdim_sweep.py example with auto + cleaning 8 anos atrás
test_sipo_omicron.py example with auto + cleaning 8 anos atrás
test_touch.py example with auto + cleaning 8 anos atrás

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.