Rivian Irvine Team
/
TCTF_Control_Main
Control Code with I/O and ADC working
Diff: LTC2487/LTC2487.cpp
- Revision:
- 14:69cd53434783
- Parent:
- 13:604e6933366f
- Child:
- 16:82d941b1ef21
diff -r 604e6933366f -r 69cd53434783 LTC2487/LTC2487.cpp --- a/LTC2487/LTC2487.cpp Tue May 08 17:08:37 2018 +0000 +++ b/LTC2487/LTC2487.cpp Wed May 16 19:31:12 2018 +0000 @@ -64,13 +64,6 @@ cmd[1] = ADC_config[0]; i2c.write((addrI2C<<1)|(I2C_WRITE), cmd, 2); - - /*//send message to select channel - i2c.write((addrI2C<<1)|(I2C_WRITE), ADC_channel, 1); - //must wait, otherwise breaks... - wait(0.08); - //send configuration (1 gain, autocalibration) - i2c.write((addrI2C<<1)|(I2C_WRITE), ADC_config, 1); //must wait, otherwise breaks...*/ wait(0.08); //Read data from selected channel --> 24bits --> 23bit=SIGN 22bit=MSB 21-7bits=DATA 5-0bits=JUNK