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
ab4db036
Commit
ab4db036
authored
3 years ago
by
abp1g20
Browse files
Options
Downloads
Patches
Plain Diff
Replace main.c
parent
6202c757
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.c
+13
-11
13 additions, 11 deletions
main.c
with
13 additions
and
11 deletions
main.c
+
13
−
11
View file @
ab4db036
...
@@ -7,17 +7,19 @@
...
@@ -7,17 +7,19 @@
#include
"lib/fonts.h"
#include
"lib/fonts.h"
#include
"lib/st7735.h"
#include
"lib/st7735.h"
//this task covers how to use the on-board temperature sensor in the RP2040 chip on the Raspberry pi Pico
/*
//it uses the analogue to digital converter (ADC) in the Pico to read the internal temperature of the RP2040 and
this task covers how to use the on-board temperature sensor in the RP2040 chip on the Raspberry pi Pico
//does the necessary data conversion to output the temperature of the chip
it uses the analogue to digital converter (ADC) in the Pico to read the internal temperature of the RP2040 and
does the necessary data conversion to output the temperature of the chip
//also covers how to perform the required data processing to take the raw ADC output and convert it
//into a voltage and then into temperature
also covers how to perform the required data processing to take the raw ADC output and convert it
into a voltage and then into temperature
//the temperature sensor might not be calibrated so temperatures might differ in different
//boards due to manufacturing inconsistencies
the temperature sensor might not be calibrated so temperatures might differ in different
//as such, if you will be using this in a serious project that requires an accurate temperature value,
boards due to manufacturing inconsistencies
//I would recommend using an external sensor.
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.
*/
int
main
()
{
int
main
()
{
...
...
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