I am interfacing the ORP 501Z to a RPI 2040 under CIrcuitPython. A key difference between Arduino and the PI is that the PI has a 12-bit A/D and CircuitPython scales A/D readings to 16 bits. I’m looking at a key line in the sample code (below) and I can’t find a definition for the constants (i.e., “75”, “30”, “1000”). I’m pretty sure the 1024 is 2^10 for the Arduino A/D and I think the 1000/1024 is base conversion.
What is the source for these constants?