🤖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

    Arduino
    1
    1
    1.1k
    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
      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
      • First post
        Last post