Last week for some reason I reinstalled my lap and also arduino ide. The issue I have is that on a code which worked fine on some esp's written before reinstall, now when i deploy it I get this error.
This is the piece of code :
const int PinCh1 = 13;
const int PinCh2 = 15;
const int freq = 5000;
const int Channel1 = 0;
const int Channel2 = 1;
const int resolution = 16;
ledcSetup(Channel1, freq, resolution);
ledcSetup(Channel2, freq, resolution);
This is the error:
E (76891) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=63
First time I assumed that is something wrong with the new esp's I bough, but I took one of the old one and I just wrote that code again on it and got same error. So I am almost sure that is something in this last version which I installed on arduino ide...I have no idea what I had before ..
Any idea on this ?
Thanks