Answer the question
In order to leave comments, you need to log in
Arduino - how to use structures?
I've been struggling with structures all morning, a
simple sketch I took from the website
playground.arduino.cc/Code/Struct
compile error
struct RGB {
byte r;
byte g;
byte b;
};
RGB variable = { 255 , 0 , 0 };
variable.r = 0; // здесь падает ошибка - test:10: error: 'variable' does not name a type
void setup() {}
void loop() {}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question