adafruit / Adafruit_Wippersnapper_Arduino

WipperSnapper is a firmware for creating no-code IoT electronics projects.
https://io.adafruit.com/welcome
MIT License
31 stars 44 forks source link

I2C not working on ESP32-S2 TFT #345

Closed isomorphic85 closed 2 years ago

isomorphic85 commented 2 years ago

Describe the bug I2C devices are not discoverable on ESP32-S2 TFT boards.

I have tried numerous different I2C sensors including several BME280 I2C sensors .

Manually trying to add a bme280 doesn't work either as it can't see the I2C device

Arduino board ESP32-S2 TFT

To Reproduce Connect I2c Sensor

  1. Go to devices / I2C Scan
  2. Click on Scan Again
  3. No devices will show
  4. Scan show's complete

Expected behavior expecting to see the i2c device that is connected's address

Which components are connected to your device none, unable to add any due to i2c not working

Screenshots image

image

image

Desktop (please complete the following information):

Additional context Tried with different ESP32-S2 TFT boards and all had same problem.

isomorphic85 commented 2 years ago

any update on this?

brentru commented 2 years ago

This issue will be looked at this week as part of the batch of issues tagged for beta 52

https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/milestone/3

brentru commented 2 years ago

Confirming this is replicable with WipperSnappter Beta 51 and the Adafruit Feather ESP32-S2 TFT

brentru commented 2 years ago

Testbed I2C scan works on my board

Default port I2C scan: 0x0, 0xB, 0x38, 0x77,

WipperSnapper I2C scan is same as issue

brentru commented 2 years ago

Hi @isomorphic85 - I've resolved this issue. You do not need to update the firmware! There was a mismatch between the I2C pins on the definition we use and the actual I2C pinout. This has since been fixed.

Please try deleting the ESP32-S2 TFT Feather from your Adafruit IO devices page. Then, refresh your tab and reconnect your board. Please let me know if it's working for you. I tested it as well with a similar setup:

I2C scan with BME280 and AHT20 attached to ESP32-S2 TFT's I2C Port: image

BME280 attached to ESP32-S2 TFT image

isomorphic85 commented 2 years ago

That worked! Awesome.

Thank you

side note- any support for images or data on the screen in the works through wipper?

brentru commented 2 years ago

side note- any support for images or data on the screen in the works through wipper?

Like on a TFT? Yes, it's on the roadmap.