Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deimoshall/rp2040_cpu_temperature
Arduino library to read the temperature from the Raspberry Pi Pico's internal temperature sensor
https://github.com/deimoshall/rp2040_cpu_temperature
arduino raspberry raspberrypipico rp2040 sensors temperature-sensor
Last synced: 29 days ago
JSON representation
Arduino library to read the temperature from the Raspberry Pi Pico's internal temperature sensor
- Host: GitHub
- URL: https://github.com/deimoshall/rp2040_cpu_temperature
- Owner: DeimosHall
- License: mit
- Created: 2023-07-06T20:24:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T22:02:19.000Z (about 1 year ago)
- Last Synced: 2023-11-05T22:30:24.051Z (about 1 year ago)
- Topics: arduino, raspberry, raspberrypipico, rp2040, sensors, temperature-sensor
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raspberry Pi Pico CPU Temperature
Arduino library to read the temperature from the Raspberry Pi Pico's internal temperature sensor.
## Installation
You can install this library using the Arduino IDE's Library Manager. Search for "Raspberry Pi Pico CPU Temperature" and install the latest version.
## Usage
```cpp
#include // Include the library to use the CPU temperature sensorCPU cpu; // Create an instance of the CPU temperature sensor
void setup() {
Serial.begin(9600);
cpu.begin(); // Initialize the CPU temperature sensor
}void loop() {
// Print the CPU temperature in Celsius
Serial.println("CPU temperature: " + String(cpu.getTemperature()) + " °C");
delay(1000);
}
```## License
This library is licensed under the MIT license. See [LICENSE](LICENSE) for more information.
## Contributing
Pull requests are welcome. Please commit your changes in the `dev` branch using [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).