B4R Question ESP8266 and WS2812B LED Strip

JMB

Active Member
Licensed User
Longtime User
I am trying to use CableGuy's library with an ESP8266 board connected to a strip of 60 WS2812B LEDs.

https://www.b4x.com/android/forum/threads/ws2812b-code-module.67381/#content

The example code mentions Pin 8.

I am a little confused as to which physical GPIO pin I am supposed to connect the Data Line for the LEDS to in order to make this code work.

I thought that Pin 8 would be GPIO8 but there is no such pin on a NodeMCU board.

Thanks for any help.

JMB
 

Daestrum

Well-Known Member
Licensed User
Longtime User
1615167895879.png
could be pin #13 the MOSI pin LH side
 
Upvote 0

JMB

Active Member
Licensed User
Longtime User
Ah thanks for that, Daestrum - the pinout diagram I have didn't show those GPIO ports on it!

I shall try that and see how I get on.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
My Code module should be considered obsolete for 2 reasons.
1- it only works with pin 8... no other pin will do.
2- A NeoPixel lib exists for B4R, wich allows for a more flexible use.
When I wrote that code module, no other libraries existed for B4R, and even for Arduino, the choices were limited.
It was "simple" to adapt as it mainly used C to tap into a "less known" arduino functionality.
 
  • Like
Reactions: JMB
Upvote 0

JMB

Active Member
Licensed User
Longtime User
Thanks for that CableGuy. I ended up using the Neopixel library and have managed to get things working.
 
Upvote 0
Top