tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/pca9685/io.go (about)

     1  package pca9685
     2  
     3  import "tinygo.org/x/drivers/internal/legacy"
     4  
     5  func (d *Dev) readReg(reg uint8, data []byte) error {
     6  	return legacy.ReadRegister(d.bus, d.addr, reg, data)
     7  }
     8  
     9  func (d *Dev) writeReg(reg uint8, data []byte) error {
    10  	return legacy.WriteRegister(d.bus, d.addr, reg, data)
    11  }