I ebay'd a couple of 60 led/m strips as I am interested in making a "wearable" safety vest for when I am biking. I played with a trinket - which worked fine in its limited capacity - but I wanted more and didnt want to learn another language. I hooked up an oscilloscope and tried getting the code in to light up a single led but PBP and a 16F819 @ 20mHZ coding was not fast enough for the WS2811 timing requirements. I tried using an asm subroutine within PBP for writing to the WS2811's and voila - but no time left for calculations. So, I started reading, more reading, finally ran across a thread with this link to an ASM file which uses the SPI in a 16F767 for a single LED:
http://wiki.hacdc.org/index.php?titl...asm&oldid=8964
This guy (credits to David Kaufman) did a great job - I just adjusted config and pic# to my chip and was running in a couple minutes. Few minutes later I had the entire strand running. So I guess my plan is to try and go back to PBP and try to write my calculations out and then call his ASM subroutine for addressing to the led's. Thats the plan anyways - I am a horrible programmer - so if anyone else goes this route and wants to post some code so I can learn more efficient coding and tricks I would be most grateful!!
Bookmarks