init bme_280 lib
This commit is contained in:
parent
08fb2efc86
commit
f7da5a3712
4 changed files with 188 additions and 3 deletions
6
node1.c
6
node1.c
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue