init bme_280 lib

This commit is contained in:
Travis Shears 2025-04-08 18:42:20 +02:00
parent 08fb2efc86
commit f7da5a3712
4 changed files with 188 additions and 3 deletions

View file

@ -1,10 +1,14 @@
#include <stdio.h>
#include <hardware/i2c.h>
#include "pico/stdlib.h"
// #include "hardware/clocks.h"
#include "bme280.h"
int main() {
stdio_init_all();
bme280_config config;
bme280_init(&config, i2c1, 14, 15);
while (true) {
sleep_ms(1000);
printf("One Second\n");