Lost + Found BMP280 Barometer driver library for Raspberry Pi Pico C SDK
- C 84.2%
- Python 10.1%
- CMake 5.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| include | ||
| src | ||
| CMakeLists.txt | ||
| conanfile.py | ||
| README.md | ||
lf-bmp280
Lost + Found BMP280 Barometer driver library for Raspberry Pi Pico C SDK.
🔌 Hardware Setup
Standard Pin Mapping:
- SDA: GP4 (Pico Pin 6)
- SCL: GP5 (Pico Pin 7)
- Bus: I2C0
📦 Usage
Add this package to your conanfile.txt or CMake setup.
CMake Integration
target_link_libraries(your_project PUBLIC lf-bmp280)
Driver Instantiation
#include "lf_bmp280.h"
lf_bmp280_t bmp;
// Initialize
if (lf_bmp280_init(&bmp, i2c0, LF_BMP280_DEFAULT_I2C_ADDR)) {
// Successfully initialized!
}
// Read telemetry
float temp, press;
if (lf_bmp280_read_data(&bmp, &temp, &press)) {
printf("Temp: %.2f C, Pressure: %.2f Pa\n", temp, press);
}