Dieser Commit ist enthalten in:
Sylaina 2018-12-06 21:33:03 +01:00 committet von GitHub
Ursprung 76fd115015
Commit 62a2b68e08
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

8
i2c.h
Datei anzeigen

@ -9,6 +9,10 @@
#ifndef i2c_h
#define i2c_h
#ifdef __cplusplus
extern "C" {
#endif
/* TODO: setup i2c/twi */
#define F_I2C 100000UL// clock i2c
#define PSC_I2C 1 // prescaler i2c
@ -35,4 +39,8 @@ void i2c_byte(uint8_t byte); // send data_byte
uint8_t i2c_readAck(void); // read byte with ACK
uint8_t i2c_readNAck(void); // read byte with NACK
#ifdef __cplusplus
}
#endif
#endif /* i2c_h */