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

    Adruino IDE vs VS Code

    Scheduled Pinned Locked Moved Arduino
    1 Posts 1 Posters 1.7k 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.
    • D Offline
      dumitru
      last edited by

      I am facing a strange issue and I am sure there must be something I am missing, so I am kindly asking for your assistance.

      I am testing this code: https://github.com/m5stack/M5Stack/tree/master/examples/Unit/PaHUB_TCA9548A

      The PaHub scanner with a M5Core Basic device (the one in the PM2.5 Air quality kit).

      The code uploaded with Arduino IDE works just fine. It displays existing addresses.
      However, the code uploaded with VSCode with Platformio does not. It is not detecting any of the I2C device addresses.

      The plafromio.ini:
      [env:m5stack-core-esp32]
      platform = espressif32
      board = m5stack-core-esp32
      framework = arduino
      lib_deps =
      m5stack/M5Stack@^0.4.6
      closedcube/ClosedCube I2C Driver@^2020.9.8
      closedcube/ClosedCube TCA9548A@^2020.5.21

      I have checked the source code of the libraries used (M5Stack and ClosedCube_TCA9548A) and they seem identical.

      I cannot understand what I a missing.

      Thank you!

      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