     Serial.println(solar_val); 
     
     //digitalPotWrite(POT_ADDRESS, solar_val);
-    analogWrite(PWM_PIN, solar_val);
+    //analogWrite(PWM_PIN, solar_val);
+    setVoltage(solar_val);
     
     // Turn off message indicator
     analogWrite(DEBUG_LED_PIN, DEBUG_LED_PWM_AWAKE);


byte sleep_mode = SLEEP_MODE_PWR_SAVE;
int parsed_val = 0;
byte solar_val = 64; // Temporary half value
volatile byte wd_isr = WD_DO_STUFF;



//#define POT_CHIP_SELECT 10
//#define POT_ADDRESS 0

// For Adafruit MCP4725A1 the address is 0x62 (default) or 0x63 (ADDR pin tied to VCC)
// For MCP4725A0 the address is 0x60 or 0x61
// For MCP4725A2 the address is 0x64 or 0x65
#define DAC_ADDRESS      (0x62)
#define DAC_CMD_WRITEDAC (0x40)  // Writes data to the DAC

#define VW_MAX_MESSAGE_LEN 40 // Same as solar/sensor
#define VW_RX_PIN 7 // PD7 (13)
#define RF_POWER_PIN 8 // PB0 (14) Toggle power to RF receiver
