Skip to content

Instantly share code, notes, and snippets.

@dwt
Created January 1, 2015 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwt/e8fc9f8e0a4859d2eef8 to your computer and use it in GitHub Desktop.
Save dwt/e8fc9f8e0a4859d2eef8 to your computer and use it in GitHub Desktop.
typedef struct color {
byte r,g,b;
} color;
// if I delete the word 'struct' from the following line - the programm doesn't compile anymore
void writeToDiode(struct color aColor) {
}
void setup() {
}
void loop() {
}
/*
Instead I get this error message:
Arduino: 1.6.0 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"
Test.ino:2:19: error: variable or field 'writeToDiode' declared void
Test.ino:2:19: error: 'color' was not declared in this scope
Fehler beim Übersetzen
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment