示例#1
0
void i2c_getSixRawADC(uint8_t add, uint8_t reg) {
  i2c_read_reg_to_buf(add, reg, &rawADC, 6);
}
示例#2
0
void i2c_getTemperature(uint8_t add, uint8_t reg) {
  i2c_read_reg_to_buf(add, reg, &rawTemp, 2);
}
示例#3
0
uint8_t i2c_readReg(uint8_t add, uint8_t reg) {
  uint8_t val;
  i2c_read_reg_to_buf(add, reg, &val, 1);
  return val;
}