diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2019-05-01 09:36:10 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2019-05-01 09:36:10 -0400 |
commit | 4f8b7f39f5d404a076142b1f62c85eb09df9061d (patch) | |
tree | 88fd0fa2c11abc5d10763895bf8914787cadba5c /temp.c | |
parent | fa8974a5dd710e8352ebde9ade6b9d22eb98b96c (diff) |
show object voltage
Diffstat (limited to 'temp.c')
-rwxr-xr-x | temp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -69,6 +69,11 @@ int16_t tempGetDieTemperature(void) return (raw >> 2) / 32; } +int16_t tempGetObjVoltage(void) +{ + return tempI2CRead(TMP006_VOBJ); +} + void tempI2CWrite(uint8_t reg, uint16_t value) { uint8_t data[3] = { |