Fahrenheit

This commit is contained in:
chaeplin
2015-08-28 03:36:26 +09:00
parent ac1b2d28dd
commit 67f0bf2f9a
2 changed files with 26 additions and 19 deletions

View File

@@ -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