Compare commits
1 Commits
a58cb79a8b
...
f2b5141124
Author | SHA1 | Date | |
---|---|---|---|
|
f2b5141124 |
15
src/main.c
15
src/main.c
@ -7,22 +7,11 @@
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <libgpio_sys/gpio.h>
|
||||
#include <libads1115/ads1115.h>
|
||||
|
||||
static struct gpio_sys gpio_sda = {
|
||||
.pin = 4,
|
||||
.direction = 1,
|
||||
};
|
||||
|
||||
static struct gpio_sys gpio_scl = {
|
||||
.pin = 24,
|
||||
.direction = 1,
|
||||
};
|
||||
|
||||
static struct i2c_bb i2c_dev = {
|
||||
.sda = &gpio_sda,
|
||||
.scl = &gpio_scl,
|
||||
.pin_sda = 4,
|
||||
.pin_scl = 24,
|
||||
};
|
||||
|
||||
static struct ads1115_dev ads = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user