Are the voltage and current readings taken together?
The two values share an array index, but they do not come from one simultaneous call. The final sketch reads A0 and then A1 for every entry. Later, their calibrated values are multiplied into sum_p. That’s the precise place where the relationship between voltage and current enters the result. I




