Update i2c.c
This commit is contained in:
parent
732a7f2be9
commit
be0cfbb97e
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ void i2c_master_init(void) {
|
||||||
// returns: 0 => success
|
// returns: 0 => success
|
||||||
// 1 => error
|
// 1 => error
|
||||||
uint8_t i2c_master_start(uint8_t address) {
|
uint8_t i2c_master_start(uint8_t address) {
|
||||||
TWCR = (1<<TWINT) | (1<<TWSTA) | (1<<TWEN);
|
TWCR = (1<<TWINT)| (1<<TWEN) | (1<<TWSTA) ;
|
||||||
|
|
||||||
i2c_delay();
|
i2c_delay();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue