Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Chris Carter
#65058 Hi All,

I want to be able to drive LOTS of ws8212b "neopixels" using something like the guide here:

https://wp.josh.com/2014/05/13/ws2812-n ... know-them/

Would anyone know how I could work out the port addresses for an ESP8266 module? Preferably a NodeMCU or Wemos D1 mini, but any is fine really.
User avatar
By Chris Carter
#65060 Hmm I'm afraid my understanding of writing direct to registers is not very good. My understanding is that I have to define the following lines of code:

#define PIXEL_PORT PORTB // Port of the pin the pixels are connected to
#define PIXEL_DDR DDRB // Port of the pin the pixels are connected to
#define PIXEL_BIT 4 // Bit of the pin the pixels are connected to

What values should I put here so that the code would work? (Or how do I use SET/RESET of registers instead?)
User avatar
By Pablo2048
#65061 IMHO You can not simple change these values and expect to get working example. You have to dig deeper into given code and replace AVR specific stuff with the ESP one. Or (if You are unable to do this) use FastLED/Adafruit NeoPixel libraries...