Modified changeAllColors, added spacing
This commit is contained in:
parent
369ecd14db
commit
d13d565c73
8
main.c
8
main.c
@ -50,12 +50,8 @@ void changeColor(Side_t side, bool red, bool green, bool blue) {
|
|||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
void changeAllColors(bool red, bool green, bool blue) {
|
void changeAllColors(bool red, bool green, bool blue) {
|
||||||
colorField[0] = red;
|
changeColor(LEFT, red, green, blue);
|
||||||
colorField[1] = green;
|
changeColor(RIGHT, red, green, blue);
|
||||||
colorField[2] = blue;
|
|
||||||
colorField[3] = red;
|
|
||||||
colorField[4] = green;
|
|
||||||
colorField[5] = blue;
|
|
||||||
}
|
}
|
||||||
int main(void) {
|
int main(void) {
|
||||||
wiringPiSetup();
|
wiringPiSetup();
|
||||||
|
Loading…
Reference in New Issue
Block a user