Skip to content

Instantly share code, notes, and snippets.

@orendon
Last active December 24, 2015 01:09
Show Gist options
  • Save orendon/6722141 to your computer and use it in GitHub Desktop.
Save orendon/6722141 to your computer and use it in GitHub Desktop.
arduino pointers
void loop()
{
byte data[2];
read_data(&data);
}
void read_data(byte *pdata)
{
pdata[0] = 'a';
pdata[1] = 'b';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment