8000 fix analog write resolution variable name in comment · sparkfun/arduino-mbed-bridge@b135276 · GitHub
[go: up one dir, main page]

Skip to content

Commit b135276

Browse files
committed
fix analog write resolution variable name in comment
1 parent f15d69d commit b135276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-implement/Common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void indexAnalogWrite(pin_size_t index, int val){
155155
// pinPWMByIndex(index) = pwm;
156156
// }
157157
// pwm->period_ms(2);
158-
// float percent = (float)val/(float)(1 << write_resolution);
158+
// float percent = (float)val/(float)(1 << res_analog_w);
159159
// pwm->write(percent);
160160
}
161161

0 commit comments

Comments
 (0)
0