We are trying to figure out how to display battery voltages on our LCD screen using EasyCv5. We have made it display primary and back_up voltages. We would like to program it as follows:
Line 1 display primary voltage
line 2 display power expander voltage
line 2 display back_up battery voltage when button 1 is depressed.
The power expander is connected to the cortex in analog port 1. Using the print screen function it displays a reading in the terminal window. We even know to divide that value by 70 to get a fairly accurate voltage. What do we need to do to get the secondary voltage displayed on the LCD line 2? And how do we get Button 1 to change the display to back_up battery voltage?
Thank you in advance for our help!