mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-20 00:02:50 +00:00
Fahrenheit
This commit is contained in:
@@ -12,7 +12,7 @@ const int AC_TYPE = 0;
|
||||
// 1 : WALL
|
||||
//
|
||||
|
||||
const int AC_HEAT = 0;
|
||||
int AC_HEAT = 0;
|
||||
// 0 : cooling
|
||||
// 1 : heating
|
||||
|
||||
@@ -63,8 +63,10 @@ void ac_activate(int temperature, int air_flow)
|
||||
int AC_MSBITS3 = 0;
|
||||
int AC_MSBITS4 ;
|
||||
if ( AC_HEAT == 1 ) {
|
||||
// heating
|
||||
AC_MSBITS4 = 4;
|
||||
} else {
|
||||
// cooling
|
||||
AC_MSBITS4 = 0;
|
||||
}
|
||||
int AC_MSBITS5 = temperature - 15;
|
||||
@@ -165,7 +167,7 @@ void loop()
|
||||
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
|
||||
# 0 : off 0
|
||||
# 1 : on 0
|
||||
|
||||
Reference in New Issue
Block a user