Hi. I've tried with the Gordon get()'s fonction.
it works, but the value read is not "stable" comparing to arduino.
the code here :
calibration code normally continuously reads a 0 'lbs' value, on arduino it works, on espruino, the value goes from 0.004 lbs up to -1000 lbs sometimes, meaning that the adc is not read correctly, surely because of too long high time for the CLK pulse (value > 60 us puts to power down mode)
I've used "compiled" directive.
© Espruino, powered by microcosm.
Report a problem