void doshowvoltage()
{
adcValue = analogRead(A0); // Convert analog of pin A0 to digital
voltage = adcValue * (5.0 / 1023.0); // Calculate voltage according to digital
Serial.println(adcValue);
Serial.println(voltage);
matrix.beginDraw();
matrix.stroke(0xFFFFFFFF);
matrix.textFont(Font_4x6);
matrix.beginText(0, 1, 0xFFFFFF);
matrix.println(voltage);
matrix.endText(0);
matrix.endDraw();
}

Join the Discord to ask follow-up questions and connect with the community
EdgeBench is a remote platform that lets developers build, test, and evaluate embedded applications on real hardware through a browser.
3,029 Members
Join