Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Driving WS2812 neopixel led strip

    Scheduled Pinned Locked Moved Guides
    neopixel
    3 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      hansamann
      last edited by

      Hi all,

      I am trying to use the LoPy 1.0r with the latest firmware and some NeoPixels - found this lib:
      https://github.com/aureleq/wipy-lopy-WS2812

      from ws2812 import WS2812
      from utime import sleep_ms
      
      chain = WS2812( ledNumber=1, brightness=50, dataPin='P22' ) # dataPin is for LoPy board only
      data = [(255, 102, 0)]
      chain.show( data )
      
      
      while True:
          chain.show( data )
          sleep_ms( 150 )
      

      Unfortunately just nothing happens. Has anyone succeeded in using the LoPy with the latest firmware to drive some neopixels?

      thx
      Sven

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @hansamann
        last edited by livius

        @hansamann
        i do not know if above work or not
        but try this one (it work)
        https://raw.githubusercontent.com/Gadgetoid/wipy-WS2812/master/ws2812alt.py

        think about people first, then computers

        1 Reply Last reply Reply Quote 1
        • H Offline
          hansamann
          last edited by

          thx, it worked with this lib!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom