Skip to content

Instantly share code, notes, and snippets.

@ultramcu
Created May 10, 2014 17:56
Show Gist options
  • Save ultramcu/3fa1c22e347d40ef54da to your computer and use it in GitHub Desktop.
Save ultramcu/3fa1c22e347d40ef54da to your computer and use it in GitHub Desktop.
Arduino pass by reference
typedef struct
{
int data;
}st_struct;
void my_fn(st_struct *st)
{
...
}
void setup()
{
...
}
void loop()
{
...
}
#include "Arduino.h"
void my_fn(st_struct *st);
void setup();
void loop();
#line 1
typedef struct
{
int data;
}st_struct;
void my_fn(st_struct *st)
{
...
}
void setup()
{
...
}
void loop()
{
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment