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
5f3e47bcaa
|
7 years ago | |
---|---|---|
gex | 7 years ago | |
.gitignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
demo_adc_lightnings.py | 7 years ago | |
demo_lora.py | 7 years ago | |
demo_ndir_leds.py | 7 years ago | |
demo_ndir_usart.py | 7 years ago | |
demo_neo2.py | 7 years ago | |
demo_neopixel.py | 7 years ago | |
demo_nrf24.py | 7 years ago | |
demo_pulse.py | 7 years ago | |
demo_pymodoro.py | 7 years ago | |
gexync.py | 7 years ago | |
ini_syntax.py | 7 years ago | |
loratest.txt | 7 years ago | |
main.py | 7 years ago | |
mat_sampling.m | 7 years ago | |
nrf_config.ini | 7 years ago | |
show_nparray.py | 7 years ago | |
sx_fsk.py | 7 years ago | |
test_adc.py | 7 years ago | |
test_adc2.py | 7 years ago | |
test_dac.py | 7 years ago | |
test_dongle.py | 7 years ago | |
test_freq_cap.py | 7 years ago | |
test_ini.py | 7 years ago | |
test_onewire.py | 7 years ago | |
test_ping.py | 7 years ago | |
test_pwmdim_music.py | 7 years ago | |
test_pwmdim_sweep.py | 7 years ago | |
test_sipo_omicron.py | 7 years ago | |
test_touch.py | 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.