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:
foley@ru.is
2013-09-13 19:37:53 +00:00
parent 276228d653
commit 16899eda2d
3 changed files with 23 additions and 20 deletions

View File

@@ -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);
}