🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Neopixel connected to EXT.IO2 problem

    Scheduled Pinned Locked Moved Modules
    2 Posts 2 Posters 1.1k Views
    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.
    • M Offline
      Marc SKIL
      last edited by

      Hello, my first post here. I am trying to use a Neopixel strand connected to an Ext.I/O2 module (connected to M5StickC2). I can see that I have a Neopixel option for port usage, but no way to write to them. This is a bit of code that let me just light the first pixel:

      import os, sys, io
      import M5
      from M5 import *
      from hardware import *
      from unit import EXTIO2Unit
      
      
      
      i2c0 = None
      extio2_0 = None
      rgb_0 = None
      
      
      def setup():
        global i2c0, extio2_0, rgb_0
      
        M5.begin()
        i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
        extio2_0 = EXTIO2Unit(i2c0)
        extio2_0.set_config_mode(0, 4)
      
      
      def loop():
        global i2c0, extio2_0, rgb_0
        M5.update()
        extio2_0.write_rgb_led(0, 0xff0a14)
      

      Any idea to for further ? Thanks,

      felmueF 1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue @Marc SKIL
        last edited by

        Hello @Marc-SKIL

        unit EXT.IO2 can only control one (1) RGB LED per output. So what you get is correct. Have a look at the protocol here.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        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
        • First post
          Last post