Lost + Found BMP280 Barometer driver library for Raspberry Pi Pico C SDK
  • C 84.2%
  • Python 10.1%
  • CMake 5.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-05 10:18:58 -07:00
include Initial commit 2026-08-05 10:18:58 -07:00
src Initial commit 2026-08-05 10:18:58 -07:00
CMakeLists.txt Initial commit 2026-08-05 10:18:58 -07:00
conanfile.py Initial commit 2026-08-05 10:18:58 -07:00
README.md Initial commit 2026-08-05 10:18:58 -07:00

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);
}