-
Notifications
You must be signed in to change notification settings - Fork 909
Add example for the PA1010D Mini GPS #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example for the PA1010D Mini GPS #151
Conversation
|
||
#ifdef i2c_default | ||
void pa1010d_write_command(char command[], int com_length){ | ||
// Convert character array to bytes for writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space needed after (
uint8_t int_command[com_length]; | ||
|
||
for (int i = 0; i < com_length; ++i){ | ||
int_command[i] = command[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space needed after (
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, lots of these in here, so won't flag up the others.
} | ||
|
||
void pa1010d_read_raw(char numcommand[]) { | ||
uint8_t buffer[max_read]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer char *numcommand I think.
Fixed up over in #167. |
This PR adds an example for the PA1010D mini GPS. It reads and parses basic location data