This is a C library for interfacing with the MAX31855 thermocouple-to-digital converter using SPI communication on the Raspberry Pi RP2040 microcontroller unit (MCU) with the Pico C/C++ Software Development Kit (SDK).
- Read temperature data from the MAX31855 thermocouple-to-digital converter.
- Supports both Celsius and Fahrenheit temperature units.
- Simple and intuitive API for easy integration into your RP2040 projects.
- Error code handling for detecting thermocouple and communication faults.
- Clone this repository or download the library files directly.
- Copy the
pico_CMAX31855
folder into your RP2040 project'slib
directory.
Check the example
folder in this repository for usage examples.
To build the examples, follow these steps:
-
Navigate to the root directory of the library.
-
Create a build directory:
mkdir build cd build
-
Run CMake to generate build files:
cmake ..
-
Compile the examples:
make
Documentation for the library can be found in the documentation/html
folder.
This library is designed to work with the MAX31855 thermocouple-to-digital converter and RP2040 microcontroller unit using the Pico C/C++ SDK. Ensure proper wiring and compatibility before use.
This library was developed by lazaj30@gmail.com. Use a little bit of the code from Adafruit.
This library is licensed under the BSD License. Feel free to modify and distribute it as needed. If you find it helpful, attribution would be appreciated.