An explanation of the ESP8266's ADC characteristics: 10-bit resolution, a single pin, and the voltage range difference between NodeMCU and the bare chip.
An explanation of ESP32's PWM architecture via 16 independent channels and the ledcSetup/ledcAttachPin/ledcWrite functions, compared to traditional analogWrite().