Module "neopixel" not found

Posted on
  • Hi guys,

    Just playing around with my original Esp. and with only one line of code from the official LEDs example on the site, oddly I'm getting:

    1v86 Copyright 2016 G.Williams
    >ERROR: Could not open file : NO_PATH
    WARNING: Module "neopixel" not found
    Uncaught Error: Field or method "write" does not already exist, and can't create it on undefined
     at line 1 col 20
    require("neopixel").write(B15, [255,0,0]);
    

    Has something changed with how modules are required?

  • wow you got a very old release 1v86, go and update to fix that error ;-)

  • Sat 2019.12.07

    Easily done through the WebIDE

    https://www.espruino.com/Original#firmwa­re-updates

  • There's now a neopixel module builtin? Man, kids these days... spoiled rotten I tell you!

    With firmware that old, you'd need to do it like we did back in my day (I'm sure there are some examples here) where you use an SPI peripheral and send4bit() or whatever it's called.

    That's how I did it back then, and lemme tell you junior, you never heard me complain!
    (heh, in terms of "back in my day" type things - a bit ago, I was modifying the hand tuned avr assembly code in adafruits arduino neopixel library to make it run on 20mhz and 10MHz parts for the new megaavr parts. Fun stuff, you feel like those guys in The Matrix who can look at the green symbols and see what the reality they decribe is. But that was only 2 months or so ago)

    But yeah - just update the f/w and you should be good. The newer firmware has all sorts of other goodies too.

  • @DrAzzy... LOOL with a lot of oooos. - :O)

  • Hey, all the ol' timers are online at the same time ;-)

    We have EST, CST and PST represented

     

    'send4bit()'

    Yep that's correct!

     

    'There's now a neopixel module builtin?'
    'But that was only 2 months or so ago'

    Geez, was it that long ago???

  • The 2-months ago was my assembly writing experience. I have no idea when Espruino got neopixel module builtin!

    TBH I haven't had a chance to work on any Espruino projects lately... I really want to finish up the two big projects for my room... I just came up with the perfect way to deal with the problem of generating patterns for my pingpong lights and deploying them. But I have a million other projects!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Module "neopixel" not found

Posted by Avatar for Coder2012 @Coder2012

Actions