Skip to content

Conversation

@Bajotumn
Copy link

@Bajotumn Bajotumn commented Oct 25, 2025

Resolves #8417

Given pins 41 and 42 are used for GPS on this version it would seem using those pins, though drop in compatible with the V3 board, would render the GNSS socket unusable unless one used the inconvenient OLED pins on the forward edge of the board.

I will test this on a Heltec v3, RAK 4631, and a T-Beam as I have those, but a regression seems quite unlikely given this is a simple variant.h update.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

Resolves meshtastic#8417

Given pins 41 and 42 are used for GPS on this version it would seem using those pins, though drop in compatible with the V3 board, would render the GNSS socket unusable unless one used the inconvenient OLED pins on the forward edge of the board.
@CLAassistant
Copy link

CLAassistant commented Oct 25, 2025

CLA assistant check
All committers have signed the CLA.

@fifieldt fifieldt added the enhancement New feature or request label Oct 25, 2025
Copy link
Member

@fifieldt fifieldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs WIRE_INTERFACES_COUNT to be set to 2

@Bajotumn
Copy link
Author

This probably needs WIRE_INTERFACES_COUNT to be set to 2

It looks like this is implicitly set in configuration.h when I2C_SDA1 is defined.

#ifndef WIRE_INTERFACES_COUNT
// Officially an NRF52 macro
// Repurposed cross-platform to identify devices using Wire1
#if defined(I2C_SDA1) || defined(PIN_WIRE1_SDA)
#define WIRE_INTERFACES_COUNT 2
#elif HAS_WIRE
#define WIRE_INTERFACES_COUNT 1
#endif
#endif

Happy to make this change if we think it should be explicitly defined though.

@fifieldt fifieldt added the 2.7 Planned for next point release label Oct 27, 2025
@Bajotumn
Copy link
Author

And here's the testing setup

image image

@b8b8
Copy link

b8b8 commented Nov 1, 2025

Nice, thanks for adding this

@HarukiToreda
Copy link
Contributor

HarukiToreda commented Nov 1, 2025

I would suggest reviewing this one again, Heltec recently introduced this Touch expansion carrier and it is meant to fully integrate to the existing assigned pins. So it's best to first see what the i2c pin is used for it to avoid conflicts in plans already in the works

https://heltec.org/project/wifi-lora-32-v4-expansion-housing/

@b8b8
Copy link

b8b8 commented Nov 1, 2025

image image image

they appear to be setup for sensor use and pass through to the back as expected (but reversed????)

@Bajotumn
Copy link
Author

Bajotumn commented Nov 2, 2025

image image image
they appear to be setup for sensor use and pass through to the back as expected (but reversed????)

Very interesting. Good catch on the pass through to the external sockets.

I have one of these coming in and can verify once it arrives if SDA and SCL need swapping. It does look like the official Heltec code still has them defined as I do here. Time will tell.

@b8b8
Copy link

b8b8 commented Nov 2, 2025

image image image
they appear to be setup for sensor use and pass through to the back as expected (but reversed????)

Very interesting. Good catch on the pass through to the external sockets.

I have one of these coming in and can verify once it arrives if SDA and SCL need swapping. It does look like the official Heltec code still has them defined as I do here. Time will tell.

Could just be a documentation error and nothing needs to change then. I dont think there is any sensor actually hooked up to the add-on board this would affect.

@HarukiToreda
Copy link
Contributor

yeah probably doesn't need to change, but in the word of caution, it's good to make sure with the actual carrier, harder to change it once people have already soldered stuff to it and suddenly it switched from an update..

@Bajotumn
Copy link
Author

Bajotumn commented Nov 3, 2025

yeah probably doesn't need to change, but in the word of caution, it's good to make sure with the actual carrier, harder to change it once people have already soldered stuff to it and suddenly it switched from an update..

So far, hopefully that's just me! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.7 Planned for next point release enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Activate Secondary I2C bus on Heltec V4

5 participants