mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-20 08:12:53 +00:00
Fahrenheit
This commit is contained in:
@@ -12,7 +12,7 @@ const int AC_TYPE = 0;
|
|||||||
// 1 : WALL
|
// 1 : WALL
|
||||||
//
|
//
|
||||||
|
|
||||||
const int AC_HEAT = 0;
|
int AC_HEAT = 0;
|
||||||
// 0 : cooling
|
// 0 : cooling
|
||||||
// 1 : heating
|
// 1 : heating
|
||||||
|
|
||||||
@@ -63,8 +63,10 @@ void ac_activate(int temperature, int air_flow)
|
|||||||
int AC_MSBITS3 = 0;
|
int AC_MSBITS3 = 0;
|
||||||
int AC_MSBITS4 ;
|
int AC_MSBITS4 ;
|
||||||
if ( AC_HEAT == 1 ) {
|
if ( AC_HEAT == 1 ) {
|
||||||
|
// heating
|
||||||
AC_MSBITS4 = 4;
|
AC_MSBITS4 = 4;
|
||||||
} else {
|
} else {
|
||||||
|
// cooling
|
||||||
AC_MSBITS4 = 0;
|
AC_MSBITS4 = 0;
|
||||||
}
|
}
|
||||||
int AC_MSBITS5 = temperature - 15;
|
int AC_MSBITS5 = temperature - 15;
|
||||||
@@ -165,7 +167,7 @@ void loop()
|
|||||||
if ( r != o_r) {
|
if ( r != o_r) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
# a : mode or temp b : air_flow, temp, swing, clean
|
# a : mode or temp b : air_flow, temp, swing, clean, cooling/heating
|
||||||
# 18 ~ 30 : temp 0 ~ 2 : flow // on
|
# 18 ~ 30 : temp 0 ~ 2 : flow // on
|
||||||
# 0 : off 0
|
# 0 : off 0
|
||||||
# 1 : on 0
|
# 1 : on 0
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
| on / 28 / high | C |1000|1000|0000|0000|1101|0100|0001
|
| on / 28 / high | C |1000|1000|0000|0000|1101|0100|0001
|
||||||
|----------------|---|----|----|----|----|----|----|----
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| 1 up | C |1000|1000|0000|1000|1101|0100|1001
|
| 1 up | C |1000|1000|0000|1000|1101|0100|1001
|
||||||
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| Cool power | C |1000|1000|0001|0000|0000|1100|1101
|
| Cool power | C |1000|1000|0001|0000|0000|1100|1101
|
||||||
| energy saving | C |1000|1000|0001|0000|0000|0100|0101
|
| energy saving | C |1000|1000|0001|0000|0000|0100|0101
|
||||||
| power | C |1000|1000|0001|0000|0000|1000|1001
|
| power | C |1000|1000|0001|0000|0000|1000|1001
|
||||||
@@ -40,31 +41,35 @@
|
|||||||
| up/down off | C |1000|1000|0001|0011|0001|0101|1010
|
| up/down off | C |1000|1000|0001|0011|0001|0101|1010
|
||||||
| flow/left/right| C |1000|1000|0001|0011|0001|0110|1011
|
| flow/left/right| C |1000|1000|0001|0011|0001|0110|1011
|
||||||
| left/right off | C |1000|1000|0001|0011|0001|0111|1100
|
| left/right off | C |1000|1000|0001|0011|0001|0111|1100
|
||||||
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| Air clean | C |1000|1000|1100|0000|0000|0000|1100
|
| Air clean | C |1000|1000|1100|0000|0000|0000|1100
|
||||||
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| off | C |1000|1000|1100|0000|0000|0101|0001
|
| off | C |1000|1000|1100|0000|0000|0101|0001
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* remote / with heating
|
* remote / with heating
|
||||||
* converted from raw code at https://github.com/chaeplin/RaspAC/blob/master/lircd.conf
|
* converted using raw code at https://github.com/chaeplin/RaspAC/blob/master/lircd.conf
|
||||||
|
|
||||||
| status |(0)| (1)| (2)| (3)| (4)| (5)| (6)| (7)
|
| status |(0)| (1)| (2)| (3)| (4)| (5)| (6)| (7)
|
||||||
|----------------|---|----|----|----|----|----|----|----
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| on | C |1000|1000|0000|0000|1011|0010|1101
|
| on | C |1000|1000|0000|0000|1011|0010|1101
|
||||||
| of | C |1000|1000|1100|0000|0000|0101|0001
|
|
||||||
|----------------|---|----|----|----|----|----|----|----
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| 64 | C |1000|1000|0000|0000|0011|0100|0111
|
| off | C |1000|1000|1100|0000|0000|0101|0001
|
||||||
| 66 | C |1000|1000|0000|0000|0100|0100|1000
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| 68 | C |1000|1000|0000|0000|0101|0100|1001
|
| 64 / 18 | C |1000|1000|0000|0000|0011|0100|0111
|
||||||
| 70 | C |1000|1000|0000|0000|0110|0100|1010
|
| 66 / 19 | C |1000|1000|0000|0000|0100|0100|1000
|
||||||
| 72 | C |1000|1000|0000|0000|0111|0100|1011
|
| 68 / 20 | C |1000|1000|0000|0000|0101|0100|1001
|
||||||
| 74 | C |1000|1000|0000|0000|1000|0100|1100
|
| 70 / 21 | C |1000|1000|0000|0000|0110|0100|1010
|
||||||
| 76 | C |1000|1000|0000|0000|1010|0100|1110
|
| 72 / 22 | C |1000|1000|0000|0000|0111|0100|1011
|
||||||
| 78 | C |1000|1000|0000|0000|1011|0100|1111
|
| 74 / 23 | C |1000|1000|0000|0000|1000|0100|1100
|
||||||
| 80 | C |1000|1000|0000|0000|1100|0100|0000
|
| 76 / 25 | C |1000|1000|0000|0000|1010|0100|1110
|
||||||
| 82 | C |1000|1000|0000|0000|1101|0100|0001
|
| 78 / 26 | C |1000|1000|0000|0000|1011|0100|1111
|
||||||
| 84 | C |1000|1000|0000|0000|1110|0100|0010
|
| 80 / 27 | C |1000|1000|0000|0000|1100|0100|0000
|
||||||
| 86 | C |1000|1000|0000|0000|1111|0100|0011
|
| 82 / 28 | C |1000|1000|0000|0000|1101|0100|0001
|
||||||
|
| 84 / 29 | C |1000|1000|0000|0000|1110|0100|0010
|
||||||
|
| 86 / 20 | C |1000|1000|0000|0000|1111|0100|0011
|
||||||
|
|----------------|---|----|----|----|----|----|----|----
|
||||||
| heat64 | H |1000|1000|0000|0100|0011|0100|1011
|
| heat64 | H |1000|1000|0000|0100|0011|0100|1011
|
||||||
| heat66 | H |1000|1000|0000|0100|0100|0100|1100
|
| heat66 | H |1000|1000|0000|0100|0100|0100|1100
|
||||||
| heat68 | H |1000|1000|0000|0100|0101|0100|1101
|
| heat68 | H |1000|1000|0000|0100|0101|0100|1101
|
||||||
|
|||||||
Reference in New Issue
Block a user