-
Notifications
You must be signed in to change notification settings - Fork 8
First program
Kryštof Černý edited this page Jun 14, 2018
·
1 revision
You can use any of examples integrated in ALKS library.
Here is a short example:
#include <ALKS.h>
void setup() {
Serial.begin(DEFAULT_SERIAL_SPEED);
setupLeds();
}
void loop() {
Serial.println("led-red");
digitalWrite(L_R, HIGH);
delay(500);
digitalWrite(L_R, LOW);
delay(500);
Serial.println("led-yellow");
digitalWrite(L_Y, HIGH);
delay(500);
digitalWrite(L_Y, LOW);
delay(500);
Serial.println("led-green");
digitalWrite(L_G, HIGH);
delay(500);
digitalWrite(L_G, LOW);
delay(500);
Serial.println("led-blue");
digitalWrite(L_B, HIGH);
delay(500);
digitalWrite(L_B, LOW);
delay(500);
}