From 8130f8c007a59216dc680416fed108c59b2bb9fb Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 12 Dec 2020 14:26:31 +0000 Subject: [PATCH] add extra gpoio support to neopixel node --- hardware/neopixel/neopix.py | 2 ++ hardware/neopixel/neopixel.html | 12 ++++++++++-- hardware/neopixel/neopixel.js | 5 ++++- hardware/neopixel/package.json | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/hardware/neopixel/neopix.py b/hardware/neopixel/neopix.py index 83756f0f..2cd53f19 100755 --- a/hardware/neopixel/neopix.py +++ b/hardware/neopixel/neopix.py @@ -47,6 +47,8 @@ MODE = sys.argv[3] LED_BRIGHTNESS = min(255,int(max(0,float(sys.argv[4])) * 255 / 100)) if (sys.argv[5].lower() != "true"): LED_GAMMA = range(256) +LED_CHANNEL = int(sys.argv[6]) +LED_PIN = int(sys.argv[7]) def getRGBfromI(RGBint): blue = RGBint & 255 diff --git a/hardware/neopixel/neopixel.html b/hardware/neopixel/neopixel.html index 794599df..ca28a4bd 100644 --- a/hardware/neopixel/neopixel.html +++ b/hardware/neopixel/neopixel.html @@ -1,8 +1,15 @@ - -