Changes at the museum being integrated in. Somehow the dropbox did not update correctly. Added the play() back into the Toshiba_SD590EKE code.

This commit is contained in:
foley@ru.is
2013-09-13 15:15:18 +00:00
parent af17d026f4
commit 21ab84949c
3 changed files with 13 additions and 17 deletions

View File

@@ -54,9 +54,6 @@ void setup() {
Serial.print(secs % 60); Serial.print(secs % 60);
Serial.println(""); Serial.println("");
// The DVD player starts playing automatically, so we should pause it
send_pause();
waitsec(2);
secs=playtime; secs=playtime;
} }
@@ -64,6 +61,9 @@ void setup() {
/********************************************************************/ /********************************************************************/
void loop() { void loop() {
Serial.println("Sync"); Serial.println("Sync");
send_pause();
waitsec(2);
send_previous(); send_previous();
//waitsec(2); //waitsec(2);
// Don't send play because previous automatically starts it // Don't send play because previous automatically starts it
@@ -93,9 +93,6 @@ void loop() {
delay(1000); delay(1000);
} }
send_pause();
waitsec(2);
} }
/**************************************************************/ /**************************************************************/

View File

@@ -52,9 +52,6 @@ void setup() {
Serial.print(secs % 60); Serial.print(secs % 60);
Serial.println(""); Serial.println("");
// The DVD player starts playing automatically, so we should pause it
send_pause();
waitsec(3);
secs=playtime; secs=playtime;
} }
@@ -62,6 +59,10 @@ void setup() {
/********************************************************************/ /********************************************************************/
void loop() { void loop() {
Serial.println("Sync"); Serial.println("Sync");
// The DVD player starts playing automatically, so we should pause it
send_pause();
waitsec(2);
send_previous(); send_previous();
// on this model, previous immediately starts playing // on this model, previous immediately starts playing
@@ -88,9 +89,6 @@ void loop() {
delay(1000); delay(1000);
} }
send_pause();
waitsec(1);
} }
/**************************************************************/ /**************************************************************/

View File

@@ -56,10 +56,13 @@ void setup() {
/********************************************************************/ /********************************************************************/
void loop() { void loop() {
Serial.println("Sync"); Serial.println("Sync");
send_previous(); send_pause();
waitsec(2); waitsec(2);
send_play(); send_previous();
//waitsec(2);
send_play(); // this should not be necessary, but just in case
for(int t = 0; t < playtime; t++) { for(int t = 0; t < playtime; t++) {
// This will not give us perfect 1 second timing // This will not give us perfect 1 second timing
// but it is good enough for most video applications // but it is good enough for most video applications
@@ -83,8 +86,6 @@ void loop() {
delay(1000); delay(1000);
} }
send_pause();
waitsec(1);
} }