       // reset the current state
       if(colorBit == 0) {
 
-        // Turn-off all color bits       
+        // Turn-off all color bits
         currentState = bit(TURNON_CHANGE_BIT);
       } else {
-      
+
         // Turn on the change state bit
         bitSet(currentState, TURNON_CHANGE_BIT);
-      
-        // Flip the color state bit     
+
+        // Flip the color state bit
         currentState ^= bit(colorBit);
       }
     }

byte getColorBits() {
  return currentState >> 1;
}


#include <RFM69.h>

// Turnon-specific settings
#define TURNON_NETWORK_ID             69
#define TURNON_CLIENT_ADDRESS         1
#define TURNON_SERVER_ADDRESS         2
#define TURNON_FREQUENCY              RF69_433MHZ
#define TURNON_SENSOR_PIN             0
#define TURNON_POT_LEFT_PIN           1
#define TURNON_POT_RIGHT_PIN          2
#define TURNON_POT_RANGE_SIZE         1024
#define TURNON_TX_LED_PIN             9
#define TURNON_FLOWER_RED_PIN         3
#define TURNON_FLOWER_GREEN_PIN       4
#define TURNON_FLOWER_BLUE_PIN        5
#define TURNON_CALIBRATION_DURATION   5000
#define TURNON_SQUEEZE_THRESHOLD      20
#define TURNON_CYCLE_DURATION         250
#define TURNON_HOLD_MILLIS            3000
#define TURNON_ACK_TIMEOUT            2000

#define TURNON_CHANGE_BIT         0
#define TURNON_STATE_RED_BIT      1
