Skip to content

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

Merged
nseidle merged 11 commits into
sparkfun:masterfrom
idea--list:master
Apr 14, 2020
Merged

A hybridized Arduino and mBed-OS version of the library #6
nseidle merged 11 commits into
sparkfun:masterfrom
idea--list:master

Conversation

@idea--list
Copy link
Copy Markdown
Contributor

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

@idea--list idea--list mentioned this pull request Mar 21, 2020
Removed the displayInfo function as that would also parse the the raw NMEA sentences, which was not intended for the most basic example. That would confuse people as this mBed port does not work with the original version of TinyGPS++ library.

Would someone want to parse NMEA sentences, they will need to add codygray's port of the TinyGPS++ library to the mBed example code.
@nseidle nseidle merged commit 9109513 into sparkfun:master Apr 14, 2020
@nseidle
Copy link
Copy Markdown
Member

nseidle commented Apr 14, 2020

Looks good! 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