Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lilnija_29012017 NucleoF042K6_IRReceiver
Diff: examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino
- Revision:
- 2:6bbd1e911324
- Parent:
- 1:370967a90abb
- Child:
- 3:17440cf7ab90
diff -r 370967a90abb -r 6bbd1e911324 examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino
--- a/examples/JVCPanasonicSendDemo/JVCPanasonicSendDemo.ino Sat Jan 23 15:25:05 2016 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-/*
- * IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
- * An IR LED must be connected to Arduino PWM pin 3.
- * Version 0.1 July, 2009
- * Copyright 2009 Ken Shirriff
- * http://arcfn.com
- * JVC and Panasonic protocol added by Kristian Lauszus (Thanks to zenwheel and other people at the original blog post)
- */
-#include <IRremote.h>
-
-#define PanasonicAddress 0x4004 // Panasonic address (Pre data)
-#define PanasonicPower 0x100BCBD // Panasonic Power button
-
-#define JVCPower 0xC5E8
-
-IRsend irsend;
-
-void setup()
-{
-}
-
-void loop() {
- irsend.sendPanasonic(PanasonicAddress,PanasonicPower); // This should turn your TV on and off
-
- irsend.sendJVC(JVCPower, 16,0); // hex value, 16 bits, no repeat
- delayMicroseconds(50); // see http://www.sbprojects.com/knowledge/ir/jvc.php for information
- irsend.sendJVC(JVCPower, 16,1); // hex value, 16 bits, repeat
- delayMicroseconds(50);
-}