Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heltec-ht62-esp32c3-sx1262: Assign GPIO18 and GPIO19 to I2C #4147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ndoo
Copy link
Contributor

@ndoo ndoo commented Jun 20, 2024

I2C is not defined on schematics, but these are the only free GPIO exposed on the castellated pads.

There are pin mux conflicts: GPIO18 = USB_DN and GPIO19 = USB_DP.

Since the HT-DEV-ESP provides a CP2102, re-use these ports for I2C instead since it's more useful (attaching peripherals vs. connecting to a host PC). Boards which use the native ESP32 USB will require a separate variant (refer to Heltec HRU-3601 variant for example).

Perhaps a "heltec_esp32c3_usb" variant would make things easier?

Took the opportunity to clean up the variant's header files too.

Relevant forum post/discussion in Heltec HT-CT62 support - Meshtastic’s future?#14.

@meshtastic-bot
Copy link

This pull request has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/heltec-ht-ct62-support-meshtastics-future/11391/15

variants/heltec_esp32c3/variant.h Outdated Show resolved Hide resolved
variants/heltec_esp32c3/variant.h Show resolved Hide resolved
variants/heltec_esp32c3/variant.h Show resolved Hide resolved
@ndoo ndoo force-pushed the ht-ct62-i2c branch 2 times, most recently from 636160a to 51dd71c Compare June 20, 2024 17:24
@ndoo
Copy link
Contributor Author

ndoo commented Jun 20, 2024

Pushed changes to address the review feedback.

Still very much an RFC, given the very limited GPIO available, we have to figure out what mapping makes the most sense for the community.

Why Heltec exposed GPIO that were already connected to the SX1262 beats me, probably just due to PCB routing limitations or not using blind vias, with however many layers they are using.

@ndoo ndoo marked this pull request as ready for review June 21, 2024 00:56
I2C is not defined on schematics, but these are the only free GPIO exposed on the castellated pads.

There are pin mux conflicts: GPIO18 = USB_DN and GPIO19 = USB_DP.

Since the HT-DEV-ESP provides a CP2102, re-use these ports for I2C instead since it's more useful (attaching peripherals vs. connecting to a host PC). Boards which use the native ESP32 USB will require a separate variant (refer to Heltec HRU-3601 variant for example).

Perhaps a "heltec_esp32c3_usb" variant would make things easier?

Took the opportunity to clean up the variant's header files too.

Signed-off-by: Andrew Yong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants