We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3191b1 commit 77288bbCopy full SHA for 77288bb
ldc500/ldc500.ino
@@ -50,10 +50,9 @@ void setCurrent(float i) {
50
}
51
52
float getVoltage() {
53
- int ctlOut = analogRead(A0);
+ int ctlOut = analogRead(laserCTL);
54
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
55
- Serial.println(analogRead(A0));
56
- return ctlOut*(5.0 / 1023.0); // voltage
+ return ctlOut*0.0049; // voltage
57
58
59
float getCurrent() {
0 commit comments