diff --git a/src/ir_codes.hpp b/src/ir_codes.hpp index 41ec420..cd9f402 100644 --- a/src/ir_codes.hpp +++ b/src/ir_codes.hpp @@ -7,7 +7,26 @@ #define RAW_BUFFER_LENGTH 750 #define AC_MAX_TEMPERATURE 30 #define AC_MIN_TEMPERATURE 15 -extern const uint8_t ir_code_cool[3][16][750] = { +extern const uint8_t ir_code_cool[4][16][91] = { + // Fan Speed Auto + { + {180, 90, 10, 12, 10, 12, 11, 34, 11, 12, 11, 34, 10, 12, 11, 12, 11, 12, 11, 12, 10, 35, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 35, 10, 34, 11, 34, 11, 34, 10, 13, 10, 12, 11, 12, 11, 12, 11, 34, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 34, 11, 34, 11, 34, 10, 12, 11}, // 15C + {180, 90, 10, 12, 11, 12, 11, 33, 12, 11, 11, 34, 11, 12, 11, 11, 11, 12, 12, 11, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 34, 12, 11, 11, 34, 11, 34, 11, 33, 11, 34, 11, 12, 11, 11, 12, 11, 12, 11, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 33, 12, 33, 11, 12, 11, 33, 11}, // 16C + {179, 90, 11, 11, 12, 11, 12, 33, 12, 11, 11, 33, 12, 11, 12, 11, 11, 12, 12, 10, 12, 33, 12, 11, 12, 11, 11, 11, 12, 11, 12, 33, 12, 11, 12, 11, 11, 33, 12, 33, 12, 33, 11, 33, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 33, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 33, 12, 33, 11, 33, 12, 11, 11}, // 17C + {180, 90, 11, 11, 11, 12, 11, 34, 11, 11, 11, 34, 11, 12, 11, 11, 12, 12, 11, 11, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 33, 12, 34, 11, 11, 11, 34, 11, 34, 11, 33, 12, 33, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 34, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 34, 11, 33, 12, 11, 11, 34, 11}, // 18C + {180, 89, 11, 12, 11, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 33, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 34, 11, 34, 11, 11, 12, 11, 11}, // 19C + {180, 90, 11, 11, 12, 11, 11, 33, 12, 11, 11, 34, 11, 12, 11, 11, 12, 11, 12, 11, 12, 33, 12, 10, 12, 11, 12, 11, 12, 33, 11, 11, 12, 33, 12, 11, 12, 33, 12, 33, 11, 33, 12, 33, 12, 11, 12, 10, 12, 12, 11, 11, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 12, 10, 12, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 12, 11, 33, 12, 11, 12, 33, 12, 32, 12}, // 20C + {180, 90, 11, 11, 11, 12, 11, 34, 11, 11, 11, 34, 11, 12, 11, 11, 12, 11, 12, 11, 11, 34, 11, 12, 11, 11, 11, 12, 11, 34, 11, 33, 12, 11, 12, 11, 11, 34, 11, 34, 11, 33, 12, 33, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 34, 11, 11, 12}, // 21C + {179, 90, 11, 11, 12, 11, 11, 34, 11, 12, 11, 33, 11, 12, 11, 12, 11, 12, 11, 11, 12, 33, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 11, 34, 11, 12, 11, 33, 12, 33, 11, 34, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 34, 11, 12, 11, 33, 11, 34, 11}, // 22C + {179, 90, 12, 11, 11, 11, 12, 33, 12, 11, 12, 32, 12, 11, 12, 11, 12, 11, 12, 11, 11, 33, 12, 11, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 12, 11, 11, 33, 12, 33, 12, 33, 12, 33, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 33, 12, 11, 11, 33, 12, 11, 12}, // 23C + {180, 90, 11, 11, 11, 11, 12, 33, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 12, 11, 12, 32, 12, 11, 12, 11, 12, 33, 11, 11, 12, 11, 12, 33, 12, 11, 12, 33, 11, 33, 12, 33, 12, 33, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 33, 12, 11, 12, 11, 11, 33, 12}, // 24C + {180, 90, 11, 12, 11, 11, 11, 34, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 12, 11, 34, 11, 11, 11, 34, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 34, 11, 12, 11, 11, 12, 11, 11}, // 25C + {180, 90, 11, 11, 11, 12, 11, 34, 11, 11, 11, 34, 11, 12, 11, 12, 10, 13, 11, 11, 12, 33, 11, 12, 11, 12, 10, 34, 11, 12, 11, 34, 10, 35, 10, 12, 11, 34, 11, 34, 11, 34, 10, 34, 11, 12, 11, 12, 10, 13, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 12, 10, 34, 11, 34, 11, 34, 10}, // 26C + {180, 89, 11, 12, 11, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 12, 11, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 12, 11, 33, 11}, // 27C + {179, 90, 12, 11, 11, 11, 12, 33, 12, 11, 12, 32, 12, 11, 12, 11, 12, 11, 12, 11, 11, 33, 12, 11, 12, 11, 12, 33, 11, 33, 12, 11, 12, 33, 12, 11, 12, 33, 11, 33, 12, 33, 12, 11, 11, 33, 12, 33, 12, 33, 12, 11, 12, 33, 11, 33, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12}, // 28C + {179, 90, 12, 10, 12, 11, 12, 33, 12, 11, 11, 33, 12, 11, 12, 11, 12, 11, 12, 11, 11, 33, 12, 11, 12, 11, 11, 33, 12, 33, 12, 33, 12, 11, 12, 11, 11, 33, 12, 33, 12, 33, 12, 11, 11, 33, 12, 33, 12, 33, 12, 11, 12, 33, 11, 33, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 33, 12, 33, 12, 33, 11, 33, 12}, // 29C + {180, 90, 10, 12, 11, 12, 11, 33, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 11, 12, 11, 11, 34, 11, 34, 11, 33, 11, 34, 12, 11, 11, 34, 11, 34, 11, 33, 11, 12, 11, 34, 11, 33, 12, 34, 11, 11, 11, 34, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 11, 12} // 30C + }, // Fan Speed High { {179, 91, 10, 12, 11, 12, 10, 34, 11, 34, 11, 34, 10, 12, 11, 12, 11, 12, 11, 12, 11, 34, 10, 12, 11, 34, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 10, 34, 11, 34, 11, 34, 11, 12, 10, 12, 11, 34, 11, 34, 11, 34, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 13, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 13, 10, 12, 11, 12, 11, 34, 10, 34, 11}, // 15C @@ -30,40 +49,47 @@ extern const uint8_t ir_code_cool[3][16][750] = { }, // Fan Speed Med { - {0}, // 18C - {0}, // 19C - {0}, // 20C - {0}, // 21C - {0}, // 22C - {0}, // 23C - {0}, // 24C - {0}, // 25C - {0}, // 26C - {0}, // 27C - {0}, // 28C - {0}, // 29C - {0} // 30C + {179, 90, 11, 11, 12, 11, 11, 34, 11, 11, 12, 33, 11, 12, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 12, 33, 11, 11, 12, 33, 11, 34, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11}, // 15C + {180, 90, 11, 11, 11, 12, 11, 33, 12, 11, 12, 33, 12, 11, 11, 11, 12, 11, 12, 11, 11, 34, 12, 33, 11, 11, 12, 11, 12, 11, 11, 11, 12, 33, 12, 11, 11, 34, 12, 33, 11, 33, 12, 11, 12, 33, 11, 33, 12, 12, 11, 33, 12, 33, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 33, 12, 11, 12, 32, 12}, // 16C + {180, 90, 10, 12, 11, 12, 11, 33, 12, 11, 12, 33, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 33, 11, 12, 12, 11, 11, 34, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 12, 33, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 12, 33, 11, 12, 11, 11, 11}, // 17C + {180, 90, 11, 12, 11, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 11, 12, 33, 12, 33, 11, 12, 11, 34, 11, 33, 11, 34, 11, 12, 11, 33, 12, 33, 11, 12, 11, 34, 11, 34, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 12, 11, 33, 12, 33, 11}, // 18C + {180, 90, 11, 11, 12, 11, 11, 33, 12, 11, 12, 33, 12, 10, 12, 11, 12, 11, 12, 11, 12, 33, 11, 33, 12, 11, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 12, 33, 12, 32, 12, 33, 12, 11, 12, 33, 11, 33, 12, 11, 12, 33, 12, 33, 12, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 12, 11, 11, 12, 11, 12, 33, 12, 10, 12}, // 19C + {180, 90, 11, 11, 12, 11, 11, 33, 12, 11, 12, 33, 12, 10, 12, 11, 12, 11, 12, 11, 12, 33, 11, 33, 12, 11, 12, 11, 12, 33, 11, 11, 12, 33, 12, 11, 12, 33, 12, 32, 12, 33, 12, 11, 12, 33, 11, 33, 12, 11, 12, 33, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 12, 33, 12, 32, 12}, // 20C + {179, 91, 11, 11, 11, 11, 12, 33, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 11, 12, 11, 34, 11, 33, 12, 11, 12, 11, 11, 33, 12, 33, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 34, 11, 11, 11}, // 21C + {180, 90, 11, 12, 11, 11, 11, 34, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 33, 11, 34, 11, 34, 11, 12, 11, 34, 11, 33, 11, 34, 11, 12, 11, 33, 12, 33, 11, 12, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 12, 11, 33, 12, 33, 11}, // 22C + {180, 90, 11, 11, 12, 11, 11, 34, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 11, 34, 11, 34, 11, 12, 11, 33, 11, 34, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 33, 11, 12, 11}, // 23C + {179, 90, 11, 11, 12, 11, 12, 33, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 12, 11, 11, 33, 12, 11, 11, 12, 12, 33, 12, 11, 11, 33, 12, 33, 12, 33, 11, 11, 12, 33, 11, 34, 11, 12, 11, 34, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 12, 11, 12, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 12, 11, 11, 11, 12, 33, 12}, // 24C + {180, 90, 10, 12, 11, 12, 11, 33, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 11, 11, 34, 11, 11, 12, 33, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 12, 33, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11}, // 25C + {179, 90, 11, 11, 12, 11, 12, 33, 11, 11, 12, 33, 11, 12, 11, 12, 11, 12, 11, 11, 12, 33, 11, 34, 11, 12, 11, 33, 11, 12, 11, 34, 11, 34, 12, 11, 11, 33, 12, 33, 12, 33, 11, 11, 12, 33, 11, 34, 12, 11, 11, 12, 11, 33, 12, 33, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 11, 34, 11}, // 26C + {180, 89, 11, 12, 11, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 12, 11, 11, 11}, // 27C + {180, 89, 11, 12, 11, 11, 12, 33, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 11, 34, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 33, 12, 33, 12, 11, 11, 12, 11, 34, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 33, 11, 34, 11, 34, 11, 33, 11}, // 28C + {180, 90, 10, 12, 11, 12, 11, 33, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 11, 11, 34, 11, 34, 11, 33, 12, 11, 12, 11, 11, 34, 11, 34, 11, 33, 11, 12, 11, 34, 11, 33, 12, 12, 11, 11, 11, 34, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 11, 12}, // 29C + {180, 89, 11, 12, 11, 11, 12, 33, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 33, 11, 34, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 12, 33, 11, 34, 11, 34, 11, 33, 11} // 30C }, // Fan Speed Low { - {0}, // 18C - {0}, // 19C - {0}, // 20C - {0}, // 21C - {0}, // 22C - {0}, // 23C - {0}, // 24C - {0}, // 25C - {0}, // 26C - {0}, // 27C - {0}, // 28C - {0}, // 29C - {0} // 30C + {179, 91, 10, 12, 11, 12, 10, 34, 11, 12, 11, 34, 10, 13, 10, 12, 11, 12, 11, 12, 11, 34, 10, 34, 11, 34, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 11, 34, 10, 34, 11, 12, 11, 34, 11, 33, 11, 13, 10, 12, 11, 34, 11, 12, 10, 12, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 12, 11, 33, 11}, // 15C + {180, 90, 10, 12, 11, 12, 10, 34, 11, 12, 11, 34, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 10, 34, 11, 34, 11, 12, 11, 12, 10, 12, 11, 34, 11, 12, 11, 34, 11, 34, 11, 33, 11, 12, 11, 34, 10, 35, 11, 12, 11, 11, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 13, 10, 34, 11, 34, 11, 12, 11, 11, 11}, // 16C + {179, 90, 11, 12, 11, 11, 12, 33, 11, 12, 11, 34, 11, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 11, 12, 33, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 33, 11, 34, 11, 12, 11, 33, 11}, // 17C + {180, 90, 11, 11, 11, 12, 11, 33, 12, 11, 11, 34, 11, 12, 11, 11, 12, 11, 12, 11, 11, 34, 11, 34, 11, 33, 12, 11, 11, 12, 11, 33, 12, 34, 11, 11, 11, 34, 11, 34, 11, 33, 12, 11, 11, 34, 11, 34, 11, 12, 11, 11, 12, 11, 11, 34, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 34, 11, 33, 11, 12, 11, 11, 12}, // 18C + {179, 90, 11, 11, 12, 11, 12, 33, 11, 12, 11, 33, 12, 11, 12, 11, 11, 12, 12, 11, 11, 33, 11, 34, 12, 33, 11, 11, 12, 33, 12, 11, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 12, 11, 33, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 34, 11, 12, 11, 33, 12, 33, 11}, // 19C + {181, 89, 11, 11, 12, 11, 11, 33, 12, 11, 12, 33, 12, 10, 12, 11, 12, 11, 12, 11, 12, 33, 11, 33, 12, 33, 12, 11, 12, 33, 11, 11, 12, 33, 12, 11, 12, 33, 12, 33, 11, 33, 12, 11, 12, 33, 11, 33, 12, 11, 12, 11, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 12, 11, 33, 12, 11, 12, 33, 12, 10, 12}, // 20C + {180, 90, 10, 12, 11, 12, 11, 33, 12, 11, 11, 34, 11, 12, 11, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 34, 11, 33, 12, 11, 12, 11, 11, 34, 11, 34, 11, 33, 12, 11, 11, 34, 11, 33, 12, 12, 11, 11, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 33, 12, 11, 11, 12, 11, 33, 12}, // 21C + {179, 91, 11, 11, 11, 12, 11, 34, 10, 12, 11, 34, 11, 12, 11, 11, 12, 11, 12, 11, 11, 34, 11, 34, 10, 34, 12, 11, 11, 34, 11, 33, 12, 34, 11, 11, 11, 34, 11, 34, 11, 34, 10, 12, 11, 34, 11, 34, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 11, 11, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 10, 35, 10, 12, 11, 34, 11, 11, 11}, // 22C + {180, 90, 10, 12, 10, 12, 11, 34, 11, 12, 11, 34, 10, 12, 11, 12, 11, 12, 11, 12, 11, 33, 11, 34, 11, 34, 11, 34, 10, 12, 11, 12, 11, 12, 11, 12, 11, 34, 10, 34, 11, 34, 11, 12, 10, 35, 10, 34, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 10, 12, 11, 12, 11, 34, 11, 12, 11, 12, 10, 34, 11}, // 23C + {180, 90, 10, 12, 11, 12, 11, 34, 10, 12, 11, 34, 11, 12, 11, 12, 10, 13, 10, 12, 11, 34, 11, 34, 10, 34, 11, 34, 11, 12, 11, 12, 10, 35, 10, 12, 11, 34, 11, 34, 11, 34, 10, 12, 11, 34, 11, 34, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 34, 11, 11, 12, 11, 11, 12, 10}, // 24C + {180, 90, 11, 12, 11, 11, 11, 34, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 34, 11, 11, 11, 34, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 33, 12, 33, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 33, 12, 33, 11}, // 25C + {179, 90, 11, 12, 10, 12, 11, 34, 11, 12, 10, 35, 10, 12, 11, 12, 11, 12, 11, 12, 10, 34, 11, 34, 11, 34, 11, 34, 10, 12, 11, 34, 11, 34, 11, 12, 11, 34, 10, 34, 11, 34, 11, 12, 10, 35, 10, 34, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 11, 34, 10, 12, 11}, // 26C + {179, 91, 10, 12, 11, 12, 10, 34, 11, 12, 11, 34, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 10, 34, 11, 34, 11, 34, 11, 34, 10, 12, 11, 12, 11, 12, 11, 34, 11, 34, 10, 34, 11, 12, 11, 34, 10, 35, 10, 13, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 10, 13, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 10, 13, 10, 12, 11, 34, 11, 12, 11, 33, 11}, // 27C + {179, 90, 11, 12, 10, 12, 11, 34, 11, 12, 10, 34, 11, 12, 11, 12, 11, 12, 11, 12, 10, 34, 11, 34, 11, 34, 11, 34, 10, 34, 12, 11, 11, 34, 11, 12, 11, 34, 11, 33, 12, 33, 11, 12, 11, 34, 11, 11, 11, 34, 11, 34, 11, 34, 11, 34, 11, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 11, 12, 11, 12, 11, 11, 34, 11, 34, 11, 33, 11}, // 28C + {179, 90, 11, 11, 12, 11, 12, 33, 11, 12, 11, 33, 12, 11, 11, 12, 11, 12, 11, 11, 12, 33, 12, 33, 12, 33, 11, 33, 12, 33, 11, 34, 11, 12, 11, 12, 11, 33, 12, 33, 11, 34, 11, 12, 11, 33, 12, 11, 11, 34, 11, 34, 11, 34, 11, 33, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 12, 11, 11, 34, 11, 33, 12, 11, 11}, // 29C + {180, 90, 10, 12, 11, 12, 11, 34, 10, 12, 11, 34, 11, 12, 10, 12, 11, 12, 11, 12, 11, 34, 11, 34, 10, 34, 12, 33, 11, 34, 11, 34, 11, 34, 11, 11, 12, 33, 11, 34, 11, 34, 11, 11, 12, 33, 11, 12, 10, 35, 11, 34, 11, 33, 12, 33, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 33, 12, 11, 11, 34, 11} // 30C }}; -extern const uint8_t ir_code_fan[3][750] = { - {0}, // LOW - {0}, // MED - {0} // HIGH +extern const uint8_t ir_code_fan[4][91] = { + {179, 90, 10, 12, 11, 12, 11, 34, 10, 12, 11, 34, 11, 12, 10, 12, 11, 13, 10, 12, 11, 12, 11, 12, 10, 12, 11, 34, 11, 34, 10, 35, 10, 35, 10, 12, 11, 34, 11, 34, 10, 35, 10, 12, 11, 34, 11, 34, 10, 35, 11, 12, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 10, 13, 10, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 10, 13, 11, 34, 10, 12, 11, 12, 11, 12, 10}, // AUTO + {180, 90, 11, 11, 12, 10, 12, 33, 12, 11, 12, 33, 11, 11, 12, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 33, 12, 33, 11, 33, 12, 33, 12, 33, 12, 11, 12, 33, 11, 33, 12, 33, 12, 11, 12, 33, 11, 33, 12, 33, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 33, 12, 33, 11, 33, 12}, // HIGH + {180, 90, 11, 11, 12, 11, 11, 33, 12, 11, 12, 33, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 33, 12, 11, 12, 33, 12, 33, 11, 33, 12, 33, 12, 11, 12, 33, 12, 33, 11, 33, 12, 11, 12, 33, 12, 33, 11, 34, 11, 11, 12, 11, 12, 33, 12, 10, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 33, 12, 11, 12, 10, 12}, // MED + {179, 90, 10, 13, 10, 12, 11, 34, 11, 12, 10, 34, 11, 12, 11, 12, 10, 13, 11, 12, 10, 12, 11, 34, 11, 34, 10, 35, 10, 34, 11, 34, 11, 34, 11, 12, 10, 34, 11, 34, 11, 34, 11, 12, 10, 34, 11, 34, 11, 34, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 11, 12, 11, 12, 11, 34, 11, 11, 12, 33, 11} // LOW }; -extern const uint8_t ir_code_off[750] = {0}; \ No newline at end of file +extern const uint8_t ir_code_off[91] = {180, 89, 12, 11, 11, 11, 12, 33, 12, 11, 12, 10, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 33, 12, 33, 11, 33, 12, 33, 12, 33, 12, 11, 12, 33, 11, 33, 12, 33, 12, 11, 11, 33, 12, 33, 12, 11, 12, 33, 12, 33, 11, 33, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 11, 11, 12, 11, 12, 11, 12, 11, 12, 33, 11, 11, 12}; \ No newline at end of file