Created
May 10, 2014 17:56
-
-
Save ultramcu/3fa1c22e347d40ef54da to your computer and use it in GitHub Desktop.
Arduino pass by reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct | |
{ | |
int data; | |
}st_struct; | |
void my_fn(st_struct *st) | |
{ | |
... | |
} | |
void setup() | |
{ | |
... | |
} | |
void loop() | |
{ | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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