I want to read the temperature from the internal sensor. My Code for this is
This works, but in order to convert the raw value into an actual temperature, you need the values of ROOM_COUNT, HOT_COUNT and HOT_TEMP
which are to be found in the OCOTP_ANA1 register (see pages 1275 and 1276 in the manual). However, When compiling, the above code with the following statement
I get the error "'OCOTP_ANA1' was not declared in this scope". What's wrong?
Code:
#include <Arduino.h>
void setup() {
}
void loop() {
Serial.println((TEMPMON_TEMPSENSE0 & 0x000FFF00) >> 8);
delay(20);
}
This works, but in order to convert the raw value into an actual temperature, you need the values of ROOM_COUNT, HOT_COUNT and HOT_TEMP
which are to be found in the OCOTP_ANA1 register (see pages 1275 and 1276 in the manual). However, When compiling, the above code with the following statement
Code:
Serial.println(OCOTP_ANA1);
I get the error "'OCOTP_ANA1' was not declared in this scope". What's wrong?