From e79631f4d1e86a5a9c2ecd318986c7f7950c40ce Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 15 Oct 2010 18:10:12 +0000 Subject: [PATCH] neubelegung ir codes damit fehlender button auf fernbedienung belegt werden kann und keiner mehr deswegen nervt --- powersensordaemon/powerids.txt | 51 ++++++++++++++------------- rf433ctl/rf433ctl.pde | 75 +++++++++++++++++++++++----------------- 2 files changed, 71 insertions(+), 55 deletions(-) diff --git a/powersensordaemon/powerids.txt b/powersensordaemon/powerids.txt index 7e612f2..72dee80 100644 --- a/powersensordaemon/powerids.txt +++ b/powersensordaemon/powerids.txt @@ -1,5 +1,5 @@ werkzeug a -stereo 1 +stereo . labor c dart d logo e @@ -11,26 +11,29 @@ decke gh lichter acdfgh ambientlights acf panicled ^ -ymhpoweroff 0 -ymhpower 1 -ymhpoweron 01 -ymhcd 5 -ymhwdtv 7 -ymhtuner 6 -ymhvolup 222222222 -ymhvoldown 333333333 -ymhvolmute 4 -ymhmenu 8 -ymhplus + -ymhminus - -ymhtest § -ymhtimelevel $ -ymheffect % -ymhprgup & -ymhprgdown / -ymhtunplus ( -ymhtunminus [ -ymhtunabcde ) -ymhtape 9 -ymhvcr ? -ymhextdec = +ymhpoweroff : +ymhpower . +ymhpoweron :. +ymhcd 1 +ymhtuner 2 +ymhtape 3 +ymhwdtv 4 +ymhsattv 5 +ymhvcr 6 +ymhaux 8 +ymhextdec 9 +ymhtest 0 +ymhtunabcde / +ymheffect \ +ymhtunplus + +ymhtunminus - +ymhvolup ;;;;;;;;; +ymhvoldown ,,,,,,,,, +ymhvolmute _ +ymhmenu # +ymhplus " +ymhminus ! +ymhtimelevel = +ymhprgdown $ +ymhprgup % +ymhp5 & diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index 10d8705..29ebfe5 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -560,50 +560,63 @@ void loop() flash_led(1, 1, 1, 1, 0); Serial.println("Ok"); } - else if (command == '0') - send_yamaha_ir_signal(YAMAHA_POWER_OFF); + else if (command == '°') + { + flash_led(0, 1, 2, 1, 0); + Serial.println("Ok"); + } else if (command == '1') - send_yamaha_ir_signal(YAMAHA_POWER_TOGGLE); + send_yamaha_ir_signal(YAMAHA_CD); else if (command == '2') - send_yamaha_ir_signal(YAMAHA_VOLUME_UP); + send_yamaha_ir_signal(YAMAHA_TUNER); else if (command == '3') - send_yamaha_ir_signal(YAMAHA_VOLUME_DOWN); + send_yamaha_ir_signal(YAMAHA_TAPE); else if (command == '4') - send_yamaha_ir_signal(YAMAHA_MUTE); + send_yamaha_ir_signal(YAMAHA_DVD_SPDIF); else if (command == '5') - send_yamaha_ir_signal(YAMAHA_CD); + send_yamaha_ir_signal(YAMAHA_SAT_SPDIFF); else if (command == '6') - send_yamaha_ir_signal(YAMAHA_TUNER); - else if (command == '7') - send_yamaha_ir_signal(YAMAHA_DVD_SPDIF); + send_yamaha_ir_signal(YAMAHA_VCR); +// else if (command == '7') +// send_yamaha_ir_signal(); else if (command == '8') - send_yamaha_ir_signal(YAMAHA_MENU); + send_yamaha_ir_signal(YAMAHA_AUX); + else if (command == '9') + send_yamaha_ir_signal(YAMAHA_EXT51DEC); + else if (command == '0') + send_yamaha_ir_signal(YAMAHA_TEST); + else if (command == '/') + send_yamaha_ir_signal(YAMAHA_TUNER_ABCDE); + else if (command == '\\') + send_yamaha_ir_signal(YAMAHA_EFFECT_TOGGLE); + else if (command == '-') + send_yamaha_ir_signal(YAMAHA_TUNER_MINUS); else if (command == '+') + send_yamaha_ir_signal(YAMAHA_TUNER_PLUS); + else if (command == ':') + send_yamaha_ir_signal(YAMAHA_POWER_OFF); + else if (command == '.') + send_yamaha_ir_signal(YAMAHA_POWER_TOGGLE); + else if (command == ';') + send_yamaha_ir_signal(YAMAHA_VOLUME_UP); + else if (command == ',') + send_yamaha_ir_signal(YAMAHA_VOLUME_DOWN); + else if (command == '_') + send_yamaha_ir_signal(YAMAHA_MUTE); + else if (command == '#') + send_yamaha_ir_signal(YAMAHA_MENU); + else if (command == '"') send_yamaha_ir_signal(YAMAHA_PLUS); - else if (command == '-') + else if (command == '!') send_yamaha_ir_signal(YAMAHA_MINUS); - else if (command == 0xa7) // § - send_yamaha_ir_signal(YAMAHA_TEST); - else if (command == '$') + else if (command == '=') send_yamaha_ir_signal(YAMAHA_TIME_LEVEL); - else if (command == '%') - send_yamaha_ir_signal(YAMAHA_EFFECT_TOGGLE); - else if (command == '&') + else if (command == '$') send_yamaha_ir_signal(YAMAHA_PRG_DOWN); - else if (command == '/') + else if (command == '%') send_yamaha_ir_signal(YAMAHA_PRG_UP); - else if (command == '(') - send_yamaha_ir_signal(YAMAHA_TUNER_PLUS); - else if (command == '[') - send_yamaha_ir_signal(YAMAHA_TUNER_MINUS); - else if (command == ')') - send_yamaha_ir_signal(YAMAHA_TUNER_ABCDE); - else if (command == '9') - send_yamaha_ir_signal(YAMAHA_TAPE); - else if (command == '?') - send_yamaha_ir_signal(YAMAHA_VCR); - else if (command == '=') - send_yamaha_ir_signal(YAMAHA_EXT51DEC); + else if (command == '&') + send_yamaha_ir_signal(YAMAHA_P5); else Serial.println("Error: unknown command"); } -- 1.7.10.4