PDA

View Full Version : NeoPixels with PicBASIC: a working solution



MichelJasmin
- 27th August 2014, 01:25
Hello everyone,
I thought it would be appropriate to start a new thread. In the original thread I posted 127934 a link about a tutorial how to use NeoPixels on a PIC. I converted it to PicBASIC with a little twist to make it work:

http://youtu.be/Fnwh4Fp2dBs

I’m running it on a PIC18F25K22 @40MHz.

DISCLAMER: it’s not pretty. GOSUBs cost too much processor time and FOR/NEXT loop cost a little too much too so I had to sacrifice some code space. It’s not that bad because when you are using NeoPixels you don’t have the luxury of making a sophisticated firmware...

So, see the attached files and give it a try. Be welcome to improve it! WATCHOUT: my includes files a in a subfolder, you may have to modify the paths.