11 lines
No EOL
202 B
C
11 lines
No EOL
202 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#define TW_WRITE 0
|
|
#define TW_READ 1
|
|
|
|
void I2C_init();
|
|
uint8_t I2C_start(uint8_t addr);
|
|
void I2C_stop();
|
|
uint8_t I2C_write(uint8_t data);
|
|
uint8_t I2C_read(uint8_t ack); |