File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ void analogWrite(uint8_t pin, int value) {
785
785
786
786
void analogWriteFrequency (uint8_t pin , uint32_t freq ) {
787
787
ledc_channel_handle_t * bus = (ledc_channel_handle_t * )perimanGetPinBus (pin , ESP32_BUS_TYPE_LEDC );
788
- if (bus != NULL ) { // if pin is attached to LEDC change frequency, otherwise update the global frequency
788
+ if (bus != NULL ) { // if pin is attached to LEDC change frequency, otherwise update the global frequency
789
789
if (ledcChangeFrequency (pin , freq , analog_resolution ) == 0 ) {
790
790
log_e ("analogWrite frequency cant be set due to selected resolution! Try to adjust resolution first" );
791
791
return ;
@@ -796,7 +796,7 @@ void analogWriteFrequency(uint8_t pin, uint32_t freq) {
796
796
797
797
void analogWriteResolution (uint8_t pin , uint8_t resolution ) {
798
798
ledc_channel_handle_t * bus = (ledc_channel_handle_t * )perimanGetPinBus (pin , ESP32_BUS_TYPE_LEDC );
799
- if (bus != NULL ) { // if pin is attached to LEDC change resolution, otherwise update the global resolution
799
+ if (bus != NULL ) { // if pin is attached to LEDC change resolution, otherwise update the global resolution
800
800
if (ledcChangeFrequency (pin , analog_frequency , resolution ) == 0 ) {
801
801
log_e ("analogWrite resolution cant be set due to selected frequency! Try to adjust frequency first" );
802
802
return ;
You can’t perform that action at this time.
0 commit comments