 //
 // D12 : OUT GND
 
+/* apple remote
+
+menu  : 77E1403C
+up    : 77E1D03C
+down  : 77E1B03C
+forward : 77E1E03C
+reverse : 77E1103C
+play  : 77E1203C
+
+
+*/
+
 IRsend irsend;
 IRrecv irrecv(IR_receive_recv_PIN); // Receive on pin 6
 

  Serial.println("IR code received");

  if ( results->bits > 0 && results->bits == 32 ) {
    if ( results->value == 0xFF02FD ) {
      ac_startMills = millis() + 1799900;
      Serial.println("IR MODE : ON");
      sleepmode = HIGH;
    }

    if ( results->value == 0xFF9867 ) {
      Serial.println("IR MODE : OFF");
      sleepmode = LOW;
    }


void ac_sleepmomde_change() {
  if ( AC_POWER_ON == 0 ) {
    ac_activate(AC_TEMPERATURE, AC_FLOW);
    Serial.println("CHANGE AC MODE : ON");
  } else {
    ac_power_down();
    Serial.println("CHANGE AC MODE : OFF");
  }
  irrecv.enableIRIn(); // Start the receiver
