P1 Forth question about using Neopixel LEDs
Mike Green
Posts: 23,101
in Forth
Can someone point me to some explanation and examples of the use of Neopixels with Forth? I've looked at EXTEND.FTH and the included WS2812 support around line 1400, but I need some explanation of LOADMOD and RUNMOD to make sense of it. I've also found RGB and RGBS, but they don't seem to work. I'm obviously missing something. Thanks.
Comments
I'd look for these in the tachyon5v7.spin or .list maybe ?
If anywhere, that would be my first guess .
Hi Mike,
I would not pretend, that I have understood this loadmod stuff. But I have still got Neopixels blinking. :-)
The most important word is RGBPIN ( instead of LEDPIN !).
Then you need RGBS
That's all.
Edit: There has to be some pause between RGBS commands!
Good luck, Christof
Hi Mike,
as I understand there is a little gap in the cog memory where you can load code to. Then you can run this code.
As RUNMOD has no parameter it just allows you to start the module you loaded before.
Update: RUNMOD passes parameters as needed to perform the function.
You find this info in google doc Search for "CODE MODULES" as examples