mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +00:00
fix-tests: migrated legacy I2C
This commit is contained in:
committed by
Ron Evans
parent
7c96387845
commit
f384e2db48
@@ -285,7 +285,6 @@ func (d *Device) Tx(data []byte, isCommand bool) {
|
|||||||
func (b *I2CBus) tx(data []byte, isCommand bool) {
|
func (b *I2CBus) tx(data []byte, isCommand bool) {
|
||||||
if isCommand {
|
if isCommand {
|
||||||
legacy.WriteRegister(b.wire, uint8(b.Address), 0x00, data)
|
legacy.WriteRegister(b.wire, uint8(b.Address), 0x00, data)
|
||||||
b.wire.WriteRegister(uint8(b.Address), 0x00, data)
|
|
||||||
} else {
|
} else {
|
||||||
legacy.WriteRegister(b.wire, uint8(b.Address), 0x40, data)
|
legacy.WriteRegister(b.wire, uint8(b.Address), 0x40, data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user