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