Browse Source

added backup sharp IR codes from remoteCentral

pull/1/head
Brendan Whitfield 8 years ago
parent
commit
62460d9281
3 changed files with 27 additions and 18 deletions
  1. +19
    -10
      Codes.cpp
  2. +2
    -2
      Codes.h
  3. +6
    -6
      IR_Transmit.ino

+ 19
- 10
Codes.cpp View File

@ -206,7 +206,13 @@ const Nibbles code_sharp_projector_POWER_ON[] PROGMEM = {{0, 1}, {0, 0}, {1, 1},
const Nibbles code_sharp_projector_VOLUME_UP[] PROGMEM = {{0, 1}, {0, 0}, {1, 1}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 2}, {0, 1}, {0, 0}, {1, 0}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 1}};
const Nibbles code_sharp_projector_VOLUME_DOWN[] PROGMEM = {{0, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 2}, {0, 1}, {0, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 1}};
//sources
const BurstPair dict_sharp2_projector[] PROGMEM = {{10, 70}, {10, 30}, {10, 1632}, {10, 1636}, {10, 1716}, {10, 1676}};
const Nibbles code_sharp2_projector_POWER_ON[] PROGMEM = {{0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 2}, {0, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 2}, {0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 2}, {0, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 2}, {0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}};
const Nibbles code_sharp2_projector_POWER_OFF[] PROGMEM = {{0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 0}, {1, 3}, {0, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 1}, {0, 0}, {1, 1}, {0, 3}, {0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 0}, {1, 3}, {0, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 1}, {0, 0}, {1, 1}, {0, 3}, {0, 1}, {0, 0}, {1, 1}, {0, 0}, {1, 0}, {1, 1}, {0, 0}, {1, 1}};
const Nibbles code_sharp2_projector_VOLUME_UP[] PROGMEM = {{0, 1}, {0, 0}, {1, 1}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 4}, {0, 1}, {0, 0}, {1, 0}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 4}, {0, 1}, {0, 0}, {1, 1}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 4}, {0, 1}, {0, 0}, {1, 0}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 4}, {0, 1}, {0, 0}, {1, 1}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 4}, {0, 1}, {0, 0}, {1, 0}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 4}, {0, 1}, {0, 0}, {1, 1}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 4}, {0, 1}, {0, 0}, {1, 0}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 1}};
const Nibbles code_sharp2_projector_VOLUME_DOWN[] PROGMEM = {{0, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 5}, {0, 1}, {0, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 5}, {0, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 5}, {0, 1}, {0, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 5}, {0, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 5}, {0, 1}, {0, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 5}, {0, 1}, {0, 0}, {1, 0}, {1, 0}, {1, 0}, {1, 1}, {1, 0}, {1, 5}, {0, 1}, {0, 0}, {1, 1}, {0, 1}, {0, 1}, {0, 0}, {0, 1}, {0, 1}};
/*
@ -352,27 +358,30 @@ const uint8_t CHANNEL_DOWN_TOTAL = NUM_ELEM(CHANNEL_DOWN);
//projectors
//POWER ON==================================================
const IRCode PROJ_POWER_STANDBY[] PROGMEM = {
{dict_sharp_projector, code_sharp_projector_POWER_STANDBY, 32, 13}
};
const uint8_t PROJ_POWER_STANDBY_TOTAL = NUM_ELEM(PROJ_POWER_STANDBY);
//POWER OFF=================================================
//POWER ON=================================================
const IRCode PROJ_POWER_ON[] PROGMEM = {
{dict_sharp_projector, code_sharp_projector_POWER_ON, 32, 13}
{dict_sharp_projector, code_sharp_projector_POWER_ON, 32, 13}//,
//{dict_sharp2_projector, code_sharp2_projector_POWER_ON, 80, 13}
};
const uint8_t PROJ_POWER_ON_TOTAL = NUM_ELEM(PROJ_POWER_ON);
//POWER OFF/standby==================================================
const IRCode PROJ_POWER_OFF[] PROGMEM = {
{dict_sharp_projector, code_sharp_projector_POWER_STANDBY, 32, 13}
};
const uint8_t PROJ_POWER_OFF_TOTAL = NUM_ELEM(PROJ_POWER_OFF);
//VOLUME UP=================================================
const IRCode PROJ_VOLUME_UP[] PROGMEM = {
{dict_sharp_projector, code_sharp_projector_VOLUME_UP, 32, 13}
{dict_sharp_projector, code_sharp_projector_VOLUME_UP, 32, 13}//,
//{dict_sharp2_projector, code_sharp2_projector_VOLUME_UP, 128, 13}
};
const uint8_t PROJ_VOLUME_UP_TOTAL = NUM_ELEM(PROJ_VOLUME_UP);
//VOLUME DOWN===============================================
const IRCode PROJ_VOLUME_DOWN[] PROGMEM = {
{dict_sharp_projector, code_sharp_projector_VOLUME_DOWN, 32, 13}
{dict_sharp_projector, code_sharp_projector_VOLUME_DOWN, 32, 13}//,
//{dict_sharp2_projector, code_sharp2_projector_VOLUME_DOWN, 128, 13}
};
const uint8_t PROJ_VOLUME_DOWN_TOTAL = NUM_ELEM(PROJ_VOLUME_DOWN);

+ 2
- 2
Codes.h View File

@ -71,8 +71,8 @@ extern const IRCode CHANNEL_DOWN[] PROGMEM;
extern const uint8_t CHANNEL_DOWN_TOTAL;
//projectors
extern const IRCode PROJ_POWER_STANDBY[] PROGMEM;
extern const uint8_t PROJ_POWER_STANDBY_TOTAL;
extern const IRCode PROJ_POWER_OFF[] PROGMEM;
extern const uint8_t PROJ_POWER_OFF_TOTAL;
extern const IRCode PROJ_POWER_ON[] PROGMEM;
extern const uint8_t PROJ_POWER_ON_TOTAL;
extern const IRCode PROJ_VOLUME_UP[] PROGMEM;

+ 6
- 6
IR_Transmit.ino View File

@ -78,9 +78,9 @@ void loop()
break;
case 7:
break;
case 8: //Sharp projector standby
currentCode = currentCode % PROJ_POWER_STANDBY_TOTAL;
sendCode(PROJ_POWER_STANDBY + currentCode);
case 8: //Sharp projector power on
currentCode = currentCode % PROJ_POWER_ON_TOTAL;
sendCode(PROJ_POWER_ON + currentCode);
break;
case 9: //Sharp projector volume up
currentCode = currentCode % PROJ_VOLUME_UP_TOTAL;
@ -114,9 +114,9 @@ void loop()
break;
case 7:
break;
case 8: //Sharp projector power on
currentCode = currentCode % PROJ_POWER_ON_TOTAL;
sendCode(PROJ_POWER_ON + currentCode);
case 8: //Sharp projector off/standby
currentCode = currentCode % PROJ_POWER_OFF_TOTAL;
sendCode(PROJ_POWER_OFF + currentCode);
break;
case 9: //Sharp projector volume down
currentCode = currentCode % PROJ_VOLUME_DOWN_TOTAL;

Loading…
Cancel
Save