Sanity Check for Neopixel pin Require statement running on ESP8266 D1 Mini [SOLVED post #6] #6444
Replies: 1 comment
-
Posted at 2021-09-07 by @MaBecker please post a picture of your board wired to the neopixel Posted at 2021-09-08 by Robin Tue 2021.09.07 I'm not understanding how an image of the hardware is going to answer my initial request for the ASCII value that is to be entered into a Javascript statement.
What should the value of 'pin' be for the ESP8266? The hardware is sound as I've used an Arduino flashed ESP8266. Will double/triple check yet again later this week. I've also posted several examples in the forums with working Espruino Javascript on Pico, WiFi and Pixl. For the ESP8266, the data wire is connected to silkscreened text 'D2' which is four pins over from the 5V input pin. We know from the data sheets that D2 is GPIO4 and shares SDA of the I2C bus. I've removed the module that worked using I2C, so I can confirm that D2 is SDA on this board. We also know that Espruino has a naming convention of an alpha char followed by a numeral. But that doesn't work for ESP32 or ESP8266. a) NodeMCU.D2 or, restating the request . . . Does someone have a working ESP8266 example that can share the pin value used in code and the printed pin silkscreen designator please. Posted at 2021-09-08 by @MaBecker Just load 2V09 on a AI ESP12 board and tested successfully neopixel. Posted at 2021-09-08 by Robin Wed 2021.09.08
What argument value was used for the 'pin' parameter above? With that, I'll map the ESP12 to my D1 mini. Posted at 2021-09-11 by Robin Sat 2021.09.11 Solved! On an ESP8266 Wavgat D1 Mini using
May be entered on L-Hand console side of WebIDE also. Posted at 2021-09-13 by Robin Sun 2021.09.12 Weired anomaly with pin mode and NodeMCU board references. Checking against:
Posted at 2021-10-19 by MisterG NodeMCU is just a convenience mapping to actual GPIO in the ESP8266. So NodeMCU.D7 is actually D13 as it states. So it looks perfectly normal. Posted at 2021-10-19 by MisterG
Also almost any free pin on a generic ESP8266 board can be used for Neopixels typcally. Just choose the most convenient one. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-09-06 by Robin
Mon 2021.09.06 - Posted 01:44pm CST - ties in with another post I'm working on
Likely to be responded to by @MaBecker
I had a working ESP8266 *circa 2017* that used the old neopixel module that was included as a separate .js file. That .js module is no longer available, and during the transition, I hadn't made a copy of that file.
I noticed that Neopixel is now included in the current build, so I re-flashed a current version.
This did not go well, (see the other post I'm working on) so I located the 2V00 version mentioned here:
This line of code no longer works: *(am uploading from R-Hand editor side of WebIDE)*
The API Reference indicates this is now deprecated:
so the format of the code line appears accurate, also confirming with:
Referencing: > https://github.com/espruino/Espruino/blob/master/targets/esp8266/jswrap_nodemcu.c
Conventions for digitalWrite() now suggest
NodeMCU.D2
but that doesn't work either.Some quick checking shows that there really hasn't been any activity for over 18 months using Neopixels on ESP8266.
At the moment, seeking a sanity check on the pin value for ESP8266. Currently running on a D1 mini.
Beta Was this translation helpful? Give feedback.
All reactions