I have to back out a little bit because it's quite a large function with lots of drawing, etc. Maybe phrusher wants to get involved
![Smile :)](./images/smilies/icon_e_smile.gif)
https://github.com/lnevo/Libraries/tree/flexOrp
Thank you for your assistancelnevo wrote:Ok, I started a branch and added in all the framework to do the flexible orp calibration... now the function just needs to be written.
I have to back out a little bit because it's quite a large function with lots of drawing, etc. Maybe phrusher wants to get involvedor if anyone else wants to give it a try, you can checkout the flexOrp branch on my repo
https://github.com/lnevo/Libraries/tree/flexOrp
Code: Select all
unsigned int iCal[2] = {0,470};
Code: Select all
unsigned int iCal[2] = {0,220};
Code: Select all
Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 470); // apply the calibration to the sensor reading
Code: Select all
Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 220); // apply the calibration to the sensor reading