You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp-open-rtos/extras/ads111x/ads111x.c Lines 54-61 see datasheet page 11 "Read Conversion register:"
in read_reg byte order returned from i2c_slave_read in res is different endianess to uint16_t and needs swapping e.g. res = ((res & 0xff) << 8) | (res >> 8);
Per the datasheet:
esp-open-rtos/extras/ads111x/ads111x.c Line 24 see datasheet page 19
#define COMP_QUE_OFFSET
should be0
not1
esp-open-rtos/extras/ads111x/ads111x.c Lines 54-61 see datasheet page 11 "Read Conversion register:"
in
read_reg byte
order returned fromi2c_slave_read
inres
is different endianess touint16_t
and needs swapping e.g.res = ((res & 0xff) << 8) | (res >> 8);
You might update the comment in esp-open-rtos/examples/ads1115_test/main.c to refer to the ADS111x not DS1302 RTC driver
Keep up the good work. Thanks in advance.
The text was updated successfully, but these errors were encountered: