Adruino IDE vs VS Code
-
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.21I 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!
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