I've been getting:
E (757) ledc: ledc_timer_config(785): speed_mode argument is invalid Unable to set ledc timer config. err=258
When setting low_speed_mode on ESP32S2.
Further investigations suggests that the values are reversed for high and low speed in LEDC.ex:
@doc """
Convenience function for setting ledc speed mode
"""
@spec high_speed_mode() :: 0
def high_speed_mode(),
do: 0
@doc """
Convenience function for setting ledc speed mode
"""
@spec low_speed_mode() :: 1
def low_speed_mode(),
do: 1
As the ESP32S2 doesn't support high_speed, I changed the value to 0 and the problem is solved.
I've been getting:
When setting low_speed_mode on ESP32S2.
Further investigations suggests that the values are reversed for high and low speed in LEDC.ex:
As the ESP32S2 doesn't support high_speed, I changed the value to 0 and the problem is solved.