haimgel / node_rgb

Software for ESP8266 WiFi SOC to control an RGB led strip via a MQTT-compatible home automation controller
Mozilla Public License 2.0
9 stars 4 forks source link

Use real PWM output in default settings #5

Open macxsm opened 6 years ago

macxsm commented 6 years ago

Hi, according to the very nice image from http://learn.acrobotic.com/tutorials/post/esp8266-getting-started the pins you use are not all pwm-capable. Instead you should use pin 2+5+6 instead of 5+6+7, because 7 is not PWM.

Bye! Marco

haimgel commented 6 years ago

There are many flavours of ESP8266 boards, with different pinouts. Mine are definitely PWM-capable, but your board could be very different.

macxsm commented 6 years ago

Ah OK. I was looking at the ESP-12e and the NodeMCU which have both the same pins for PWM. Even if it works with the ports you selected, I think I noticed some unsmoothness when the color of the not-pwm-pin (as documentation says) appears. Anyway, not an issue, because it's configurable. Thanks for sharing!