code: func (d *DRV2605LDriver) SetMode(newMode DRV2605Mode) (err error) {
  	mode, err := d.connection.ReadByteData(drv2605RegMode)
  	if err != nil {
  		return err
  	}
  
  	// clear mode bits (lower three bits)
  	mode &= 0xf8
  	// set new mode bits
  	mode |= uint8(newMode)
  
  	err = d.connection.WriteByteData(drv2605RegMode, mode)
  
  	return err
  }
docs: // SetMode sets the device in one of the eight modes as described in the
  // datasheet. Defaults to mode 0, internal trig.