1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-04 20:37:46 +02:00

changed ReadBytes to get file size from stat

This commit is contained in:
Gavin Cabbage 2015-10-10 23:23:40 -04:00 committed by Max Matveev
parent a453ad3b0f
commit 5e7af40a61
3 changed files with 12 additions and 4 deletions

2
i2c.go
View file

@ -4,6 +4,8 @@ package embd
// I2CBus interface is used to interact with the I2C bus.
type I2CBus interface {
// ReadBytes reads a slice of bytes from the given address.
ReadBytes(addr byte) (value []byte, err error)
// ReadByte reads a byte from the given address.
ReadByte(addr byte) (value byte, err error)
// ReadBytes reads a slice of bytes from the given address.