diff --git a/cores/nRF5/wiring_analog.cpp b/cores/nRF5/wiring_analog.cpp index a462fba2..570be9eb 100644 --- a/cores/nRF5/wiring_analog.cpp +++ b/cores/nRF5/wiring_analog.cpp @@ -50,9 +50,10 @@ extern "C" */ void analogWriteResolution( uint8_t res ) { - HwPWM0.setResolution(res); - HwPWM1.setResolution(res); - HwPWM2.setResolution(res); + for (int i = 0; isetResolution(res); + } } /**