Skip to content
Snippets Groups Projects
Commit 9eb2f3f2 authored by abp1g20's avatar abp1g20
Browse files

Replace main.c

parent ab4db036
Branches
Tags
No related merge requests found
...@@ -18,13 +18,11 @@ into a voltage and then into temperature ...@@ -18,13 +18,11 @@ into a voltage and then into temperature
the temperature sensor might not be calibrated so temperatures might differ in different the temperature sensor might not be calibrated so temperatures might differ in different
boards due to manufacturing inconsistencies boards due to manufacturing inconsistencies
as such, if you will be using this in a serious project that requires an accurate temperature value, as such, if you will be using this in a serious project that requires an accurate temperature value,
I would recommend using an external sensor. I would recommend using an external sensor
*/ */
int main() { int main() {
stdio_init_all(); // Initialise serial in/output
//Configure ADC //Configure ADC
adc_init(); adc_init();
adc_set_temp_sensor_enabled(true); //Enable temperature sensor adc_set_temp_sensor_enabled(true); //Enable temperature sensor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment