Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/gex/demo-py-examples/src/branch/master/demo_neopixel.py
You should set ROOT_URL correctly, otherwise the web may not work correctly.
Example scripts for the Python GEX library
|
#!/bin/env python3
|
|
import gex
|
|
|
|
# the most basic neopixel demo
|
|
|
|
with gex.Client(gex.TrxRawUSB()) as client:
|
|
# Neopixel strip
|
|
strip = gex.Neopixel(client, 'npx')
|
|
# Load RGB to the strip
|
|
strip.load([0xFF0000, 0x00FF00, 0x0000FF, 0xFF00FF])
|
|
|
|
|