Created
January 1, 2015 22:47
-
-
Save dwt/e8fc9f8e0a4859d2eef8 to your computer and use it in GitHub Desktop.
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 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