Hi svan,
Thanks for your response.
- How did you install the keystone library?
I simply installed keystone from the library manager (https://keystonep5.sourceforge.net/).
- Where are the movie clips?
They’re in the data folder of the project and are named sequentially according to the naming protocol in this code:
for (int i = 0; i < clips.length; i ++ ) {
clips[i] = new Movie(this, "SuH_" +(i+1)+ ".mov");
}
- Is there Arduino source code that we need to have in order to run your project?
The Arduino shouldn’t be essential. One simply has to disable the ‘serialWrite()’ function or select a different serial port if the Arduino board isn’t plugged in. I’ll post the code here anyway just in case:
int relayPin = 6;
int val;
String command;
void setup() {
Serial.begin(9600);
pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, LOW);
delay(2000);
}
void loop() {
if (Serial.available()) { // If data is available to read,
val = Serial.read(); // read it and store it in val
}
if (val == '1') { // If 1 was received
digitalWrite(relayPin, LOW); // turn the LED on
} else {
digitalWrite(relayPin, HIGH); // otherwise turn it off
}
delay(10); // Wait 10 milliseconds for next reading
}