Hi, using the MSP430FR2433 I can measure the supply voltage with the following code in Energia upto 3V successfully:
#define ANALOG_HALFVCC_INPUT A11
void setup() {
analogReference(INTERNAL1V5);
data = analogRead(ANALOG_HALFVCC_INPUT);
data = (int)map(data, 0, 1023, 0, 3000);
Serial.println(data);
}
However when using
there is an error saying INTERNAL2V5 is not declared.
Is there a way to read voltages above 3V for this board too?
Many thanks in advance,
Robert