Skip to content

Allow GPS with any i2c address (support PA1010D) - #770

Merged
deadprogram merged 1 commit into
tinygo-org:devfrom
jphastings:allow-gps-i2c-address
Jun 30, 2025
Merged

Allow GPS with any i2c address (support PA1010D)#770
deadprogram merged 1 commit into
tinygo-org:devfrom
jphastings:allow-gps-i2c-address

Conversation

@jphastings

@jphastings jphastings commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Adafruit's Mini GPS PA1010D Module works with this device driver (personally confirmed), but requires 0x10 as the i2c address, rather than 0x42.

This change allows the device to be initialised with whatever i2c address is needed, while maintaining backward compatibility.

(If backward compatibility isn't needed, please let me know, and I'll remove the function that assumes a default, and force the use of an i2c address to initialise!)

Also adds new constants to allow easy configuration of both the ublox device and the PA1010D.

Adafruit's Mini GPS PA1010D Module works with this device driver, but requires 0x10 as the address, rather than 0x42.

This change allows the device to be initialised with whatever i2c address is needed, while maintaining backward compatibility.

Adds new constants to allow easy configuration of both the ublox device and the PA1010D.
@jphastings jphastings changed the title feat: allow gps init with address Allow GPS with any i2c address (support PA1010D) Jun 30, 2025
@deadprogram
deadprogram changed the base branch from release to dev June 30, 2025 11:59
@deadprogram

Copy link
Copy Markdown
Member

Looks good, thanks for working on this @jphastings

I switched the target branch to dev as mentioned here: https://github.com/tinygo-org/drivers/blob/release/CONTRIBUTING.md#how-to-use-our-github-repository

Now merging, thanks again!

@deadprogram
deadprogram merged commit d02d21e into tinygo-org:dev Jun 30, 2025
1 check passed
@jphastings
jphastings deleted the allow-gps-i2c-address branch June 30, 2025 12:01
@jphastings

Copy link
Copy Markdown
Contributor Author

Ahh, I didn't spot that part of the contributing guide — thank you!

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.

2 participants