Wish Nulsom Neopixel wrapper library

inakigarm

Well-Known Member
Licensed User
Longtime User
Hi:

I've this WS2812B led stick
41CE1VN15UL._SX425_.jpg

(attached Datasheet of Nulsom family LED components). I've tried with Arduino Neopixel library on Arduino IDE and with WS2812B library from Cableguy with no luck.

After googling, I've find this library that works Ok on Arduino IDE. (attached library + Arduino UNO examples)

Someone can wrap it to B4R ??

Thanks
 

Attachments

  • NS_Rainbow.zip
    7.9 KB · Views: 337

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please try the attached library.
B4X:
Sub Process_Globals
   Public Serial1 As Serial
   Private rb As NSRainbow
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   rb.Initialize(1, 9)
   rb.SetColor(0, 255, 0, 0)
   rb.Show
End Sub

If it is working then you should post a picture...
 

Attachments

  • rNSRainbow.zip
    3.7 KB · Views: 374

inakigarm

Well-Known Member
Licensed User
Longtime User
Sorry, I've tried the Cableguy code for W2812B but didn't search for B4R Adafruit library ;-(

I've tried the wrapped library but didn't work . I don't know if it matters but which are the values for rb.initialize ?
(first the number of leds on the strip and second the Arduino pin used as Din ?)
 
Top