took out the extra pauses in the Toshiba SD590EKE. Removed the timer include (not needed). Updated the information in the branched SD1091 code. Finished implementation and testing of the SD1091 code. Added a space to the formatting of the second timer UI output.

This commit is contained in:
foley@ru.is
2013-09-10 21:08:23 +00:00
parent ed5cbf7667
commit 4176b75d05
4 changed files with 44 additions and 59 deletions

View File

@@ -1,23 +1,19 @@
/* DVD IR Synchronizer for Toshiba SD590EKE V1.0
/* DVD IR Synchronizer for Toshiba SD590EKE
* Developed for Art Installation "Dawn" by Sigrun Hardardottir<sigrun@stalverk.is>
* Code written by Joe Foley <foley@ru.is>
* on 2013-09-08
*
* Based upon Sychronizer code by
* KHM 2010 / Martin Nawrath
* Kunsthochschule fuer Medien Koeln
* Academy of Media Arts Cologne
*
* Requires libraries:
* MsTimer2 http://playground.arduino.cc/Main/MsTimer2
* Arduino-IRremote https://github.com/shirriff/Arduino-IRremote
*
* IR Remote codes from SE-R0313
* http://lirc.sourceforge.net/remotes/toshiba/SE-R0313
*
* The IRremote library uses Pin 3 for the Anode (longer pin)
* We have made a ground pin on Pin 4 for the Cathode (shorter pin)
*/
#include <MsTimer2.h>
#include <IRremote.h>
int pinGND=4; // Longer leg on the IR LED
@@ -49,9 +45,7 @@ void setup() {
// The DVD player starts playing automatically, so we should pause it
send_pause();
waitsec(1);
send_pause();
waitsec(1);
waitsec(2);
secs=playtime;
}
@@ -60,7 +54,7 @@ void setup() {
void loop() {
Serial.println("Sync");
send_previous();
waitsec(3);
waitsec(2);
send_play();
for(int t = 0; t < playtime; t++) {
@@ -81,16 +75,13 @@ void loop() {
send_pause();
waitsec(1);
send_pause();
waitsec(1);
}
/**************************************************************/
void waitsec(int sec) {
Serial.print("wait");
Serial.print("Wait ");
Serial.print(sec);
Serial.println("seconds");
Serial.println(" seconds");
delay(sec*1000);
}