SlashDevin / NeoGPS

NMEA and ublox GPS parser for Arduino, configurable to use as few as 10 bytes of RAM
GNU General Public License v3.0
707 stars 195 forks source link

Adding I2C support #104

Closed nseidle closed 2 years ago

nseidle commented 6 years ago

I've been working with ublox modules and I2C interfaces recently. Would you be open to a PR that adds I2C port routing to your lib? Attached is un-tested code but I've got it working independent from your lib. If this is of interest, let me know and I'll clean up the PR, test it, then re-submit.

Pros: Your lib could be used with ublox I2C ports and skip the software serial madness altogether

Cons: Currently hard coded for ublox modules 6/7/8/8M series. But I could add support for the MediaTek modules.

nseidle commented 6 years ago

Code works but could be minimized. I've included an example as well. The example follows our standard 'escalating example' model. Example1_... is the bare minimum so that users aren't overwhelmed. Additional examples can be created to show options/features.