add heating

This commit is contained in:
chaeplin
2015-08-27 21:09:30 +09:00
parent d8bdbb1a44
commit d87707d0ec

View File

@@ -10,6 +10,11 @@ IRrecv irrecv (RECV_PIN);
const int AC_TYPE = 0;
// 0 : TOWER
// 1 : WALL
//
const int AC_HEAT = 0;
// 0 : cooling
// 1 : heating
int AC_POWER_ON = 0;
// 0 : off
@@ -27,6 +32,8 @@ int AC_FLOW = 1;
// 1 : mid
// 2 : high
// if AC_TYPE =1, 3 : change
//
const int AC_FLOW_TOWER[3] = {0, 4, 6};
const int AC_FLOW_WALL[4] = {0, 2, 4, 5};
@@ -54,7 +61,12 @@ void ac_activate(int temperature, int air_flow)
int AC_MSBITS1 = 8;
int AC_MSBITS2 = 8;
int AC_MSBITS3 = 0;
int AC_MSBITS4 = 0;
int AC_MSBITS4 ;
if ( AC_HEAT == 1 ) {
AC_MSBITS4 = 4;
} else {
AC_MSBITS4 = 0;
}
int AC_MSBITS5 = temperature - 15;
int AC_MSBITS6 ;