Reading TI-ADS1115 in Tachyon
When I use this code to read a conversion from a TI-ADS1115 ADC the LSB is all zeros. Anything wrong here? Using Tachyon Neon with EXTEND5v4 on Prop 1.
- $90 := @ADC \ ( --- ) define CONSTANT for adc 8-bit I2C address - this is the I2C address for the ADC board
ADC16@ ( reg -- dat16 ) \ read contents from a TI-1115 register
W \ combine bytes into a word
I2C> \ that's all for now