Skip to content

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

Conversation

aayushijhaveri
Copy link

This PR adds an example for the PA1010D mini GPS. It reads and parses basic location data

@aallan aallan added the enhancement New feature or request label Aug 13, 2021

#ifdef i2c_default
void pa1010d_write_command(char command[], int com_length){
// Convert character array to bytes for writing
Copy link
Collaborator

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];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space needed after (

Copy link
Collaborator

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];
Copy link
Collaborator

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.

@aallan aallan changed the base branch from develop to merge-intern-examples October 14, 2021 09:19
@aallan aallan mentioned this pull request Oct 18, 2021
@lurch lurch mentioned this pull request Oct 19, 2021
@aallan
Copy link

aallan commented Oct 19, 2021

Fixed up over in #167.

@aallan aallan closed this Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
does not build enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants