Yuri D'Elia
2d71a071f0
Switch twi.c to fastio
2021-01-29 17:51:38 +01:00
Yuri D'Elia
c2e8d229a7
Be more compliant in the I2C protocol
...
- Enter a repeated-start for reading data
- Write in the same session
2020-09-28 20:21:07 +02:00
Yuri D'Elia
384f40956c
Remove obsolete cbi/sbi
2020-09-27 16:42:20 +02:00
Yuri D'Elia
e37cdab38f
PAT9125_I2C: accept either NACK or ACK in receive
...
Both would be technically correct.
2020-08-25 12:15:55 +02:00
Yuri D'Elia
7f425120f0
Strip down the TWI code
...
- Only implement a single syncronous read/write function to read a byte,
since that's all we need currently
- Implement a compact IR_SENSOR probe for PAT9125
- Saves 242 bytes compared to PAT9125_SWI2C
2020-08-20 22:13:04 +02:00
Yuri D'Elia
240dc1132e
Include initial implementation based on Arduino's twi
2020-08-20 15:34:46 +02:00