mirror of https://github.com/periph/devices
conn: Simplify Conn, rename i2c.Conn to i2c.Bus. (#40)
- Remove fmt.Stringer and io.Writer from conn.Conn. This makes it compatible with exp/io. - Rename i2c.Conn to i2c.Bus since this was confusion. This clarifies the distinction between a point-to-point connection and a bus. - Add these to bus specific interfaces, i2c.Bus, spi.Conn, uart.Conn. Fixes #15.pull/1/head
parent
b939aeacd3
commit
8bca85318d
Loading…
Reference in New Issue