sparkfun / SparkFun_I2C_GPS_Arduino_Library

Library for reading and controlling MT3333 and MT3339 based GPS modules over I2C.
Other
18 stars 13 forks source link

A hybridized Arduino and mBed-OS version of the library #6

Closed idea--list closed 4 years ago

idea--list commented 4 years ago

Modified the library to work under mBed-OS as well. Magic is done via preprocessor definitions, this way we do not need separate library files for each framework.

As mBed-OS works somewhat different than Arduino, it also needs the externs.h file found in root. This file enables usage the same I2C and Serial definition in all the .h and .cpp files.

main.cpp contains a basic mBed-OS example that will output raw NMEA sentences. Would you need to parse those, you will need to incorporate codygray's port of the TinyGPS++ library

This port has been tested on MAX32630FTHR and mBed v5.14.2

nseidle commented 4 years ago

Looks good! Thank you!