power-dodge wrote: ↑27 Jul 2018, 15:22
Hello,
yes, the bad functioität the pin control I can confirm again.
Some pins can not be set to 0 via PWM and GPIO.
If you set the pins to 0 by rules when starting, then there are sporadically other pins that can not be set to 0.
These pins they can not go but put on PWM 1. But it's easy for consumers to shine.
This behavior I have also on several ESP32 and quite edentisch.
greeting
The ESP32 is NOT an extra size ESP8266, but behaves completely different. Some pins cannot be programmed to be input and others cannot be programmed to be output. I fell into that trap, ruining my prototype (scratched the pcb and started over again).
For pwm it’s the same, some pins can do pwm while others cannot. Just like I2C: some pins are hardware I2C, while others are software I2C (hw is twice the speed).
Take a look at an ESP32 pinout like this one (wroom32 type):
https://goo.gl/images/RXWicF
You’ll need to understand what each label on every pin means! If not you’ll be searching what went wrong for a very long time.
Cheers,
Lisa