reorganizing project to more general synchronizer in preparation for export/delivery to RVK museum.
This commit is contained in:
44
synchronizer/tests/IRtest2/Synchronizer.pde
Normal file
44
synchronizer/tests/IRtest2/Synchronizer.pde
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Remote Test for Toshiba DVD player
|
||||
* by Joe Foley <foley@mit.edu>
|
||||
* Codes from http://lirc.sourceforge.net/remotes/toshiba/SE-R0313
|
||||
* IRRemote library at http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html
|
||||
* A random text file says that Toshiba uses the NEC protocol
|
||||
*/
|
||||
#include <IRremote.h>
|
||||
|
||||
#define ToshibaAddress 0xA25D // Toshiba address (Pre data)
|
||||
#define ToshibaPower 0x48B7 // Toshiba Power button
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.println("IRremote test for Toshiba SD560EKE $Rev$");
|
||||
Serial.println("$URL$");
|
||||
Serial.println("$Id$");
|
||||
|
||||
|
||||
// power
|
||||
//irsend.sendNEC(0xA25D48B7,32);
|
||||
//delayMicroseconds(200);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// pause
|
||||
irsend.sendNEC(0xA25D00FF, 32);
|
||||
delay(2000);
|
||||
|
||||
// previous
|
||||
irsend.sendNEC(0xA25DC43B, 32);
|
||||
delay(2000);
|
||||
|
||||
//play
|
||||
irsend.sendNEC(0xA25DA857,32);
|
||||
delay(10000);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user