Used IRDump to grab codes for the Scott DVX605 HDV on Stein's work 'West'

This commit is contained in:
foley@ru.is
2013-09-13 16:40:08 +00:00
parent 5301073eeb
commit 0e8d4a5fb1

View File

@@ -1,5 +1,5 @@
/* DVD IR Synchronizer for Philips DVP3142/12
* Developed for Art Installation "Thor"
* Developed for Art Installation "West"
* Code written by Joe Foley <foley@ru.is>
* on 2013-09-08
*
@@ -10,10 +10,6 @@
*
* IR Remote codes from IRrecvDemo
*
*
* Details on the Philips RC6 coding
* http://www.pcbheaven.com/userpages/The_Philips_RC6_Protocol/
*
* 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)
*/
@@ -26,8 +22,8 @@ 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
// West 25:41
int playtime= 25*60+40; // Play time in seconds, you usually leave off a second or two
//int playtime= 10; // testing
@@ -38,8 +34,8 @@ void setup() {
pinMode(pinLED,OUTPUT);
Serial.begin(115200);
Serial.println("Panasonic DVD DVP-3142/12 Synchronizer $Rev$");
Serial.println("For \"Sarcity\" by Thor Elis (1981)
Serial.println("Scott DVX605 HD(Rev2) Synchronizer $Rev$");
Serial.println("For \"West\" by Steina Vasulka (1983)
");
Serial.println("Code by Joe Foley <foley@ru.is>");
Serial.println("$URL$");
@@ -68,7 +64,7 @@ void loop() {
//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
@@ -108,26 +104,26 @@ 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.sendNEC(0xFFC837,32);
}
/********************************************************************/
void send_play() {
// First comes the pre-data bits, then the command code
Serial.println(" play");
irsend.sendRC6(0x1042C,20);
irsend.sendRC6(0xFFF00F,32);
}
/********************************************************************/
void send_pause() {
// First comes the pre-data bits, then the command code
Serial.println(" pause");
irsend.sendRC6(0x1042C,20);
irsend.sendRC6(0xFFD02F,32);
}
/********************************************************************/
void send_previous() {
// First comes the pre-data bits, then the command code
Serial.println(" previous");
irsend.sendRC6(0x10421, 20);
irsend.sendRC6(0xFF50AF, 32);
}