added extra send_previous() to all code except the Toshiba_SD590, because it needs the pause and single send_previous() to sync correctly.
This commit is contained in:
@@ -27,7 +27,7 @@ int pinLED=13; // The heartbeat LED on the board
|
||||
int heartbeat=0;
|
||||
int secs;
|
||||
// Sarcity 20:58
|
||||
int playtime= 20*60+57; // Play time in seconds, you usually leave off a second or two
|
||||
int playtime= 22*60+10; // Play time in seconds, you usually leave off a second or two
|
||||
|
||||
//int playtime= 10; // testing
|
||||
|
||||
@@ -39,8 +39,7 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
Serial.println("Panasonic DVD DVP-3142/12 Synchronizer $Rev$");
|
||||
Serial.println("For \"Sarcity\" by Thor Elis (1981)
|
||||
");
|
||||
Serial.println("For \"Sarcity\" by Thor Elis (1981)");
|
||||
Serial.println("Code by Joe Foley <foley@ru.is>");
|
||||
Serial.println("$URL$");
|
||||
Serial.println("$Id$");
|
||||
@@ -55,15 +54,18 @@ void setup() {
|
||||
Serial.println("");
|
||||
|
||||
secs=playtime;
|
||||
|
||||
send_play();
|
||||
}
|
||||
|
||||
/********************************************************************/
|
||||
void loop() {
|
||||
Serial.println("Sync");
|
||||
send_pause();
|
||||
waitsec(2);
|
||||
//send_pause();
|
||||
//waitsec(2);
|
||||
|
||||
// The three players don't always see the "previous command" so we send it multiple times
|
||||
send_previous();
|
||||
send_previous();
|
||||
send_previous();
|
||||
//waitsec(2);
|
||||
// Don't send play because previous automatically starts it
|
||||
@@ -108,7 +110,7 @@ void waitsec(int sec) {
|
||||
void send_stop() {
|
||||
// First comes the pre-data bits, then the command code
|
||||
Serial.println(" stop");
|
||||
irsend.sendNEC(0x10431,20);
|
||||
irsend.sendRC6(0x10431,20);
|
||||
}
|
||||
|
||||
/********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user