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:
@@ -56,14 +56,16 @@ void setup() {
|
||||
/********************************************************************/
|
||||
void loop() {
|
||||
Serial.println("Sync");
|
||||
send_pause();
|
||||
waitsec(2);
|
||||
//send_pause();
|
||||
//waitsec(2);
|
||||
|
||||
send_previous();
|
||||
send_previous();
|
||||
send_previous();
|
||||
//waitsec(2);
|
||||
// Don't send play because previous automatically starts it
|
||||
// If we hit play it will merely pause it.
|
||||
send_play();
|
||||
//send_play();
|
||||
|
||||
for(int t = 0; t < playtime; t++) {
|
||||
// This will not give us perfect 1 second timing
|
||||
@@ -110,19 +112,19 @@ void send_stop() {
|
||||
void send_play() {
|
||||
// First comes the pre-data bits, then the command code
|
||||
Serial.println(" play");
|
||||
irsend.sendRC6(0xFFF00F,32);
|
||||
irsend.sendNEC(0xFFF00F,32);
|
||||
}
|
||||
|
||||
/********************************************************************/
|
||||
void send_pause() {
|
||||
// First comes the pre-data bits, then the command code
|
||||
Serial.println(" pause");
|
||||
irsend.sendRC6(0xFFD02F,32);
|
||||
irsend.sendNEC(0xFFD02F,32);
|
||||
}
|
||||
|
||||
/********************************************************************/
|
||||
void send_previous() {
|
||||
// First comes the pre-data bits, then the command code
|
||||
Serial.println(" previous");
|
||||
irsend.sendRC6(0xFF50AF, 32);
|
||||
}
|
||||
irsend.sendNEC(0xFF50AF, 32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user