|
#include <dio.h>
|
|
#include <i2c.h>
|
|
|
|
typedef enum registers {
|
|
POWER_OFF = 0x00,
|
|
SET_LIGHTS = 0x01,
|
|
} registers_e;
|
|
|
|
int main(void) {
|
|
i2c_bus_t *bus = i2c_init(
|
|
(dio_t){ .ddr = &DDRB, .port = &PORTB, .addr = 4 },
|
|
(dio_t){ .ddr = &DDRB, .port = &PORTB, .addr = 3 },
|
|
);
|
|
|
|
while(1) {
|
|
}
|
|
}
|
|
|