Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pico-displayTemperature
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
abp1g20
pico-displayTemperature
Commits
9eb2f3f2
Commit
9eb2f3f2
authored
3 years ago
by
abp1g20
Browse files
Options
Downloads
Patches
Plain Diff
Replace main.c
parent
ab4db036
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.c
+1
-3
1 addition, 3 deletions
main.c
with
1 addition
and
3 deletions
main.c
+
1
−
3
View file @
9eb2f3f2
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment