mirror of
https://github.com/wled/WLED.git
synced 2026-04-20 22:22:51 +00:00
Add channel parameter to ledcAttach function
keep same behaviour as in previous V4 code
This commit is contained in:
@@ -418,7 +418,7 @@ BusPwm::BusPwm(const BusConfig &bc)
|
||||
ledcSetup(channel, _frequency, _depth - (dithering*4)); // with dithering _frequency doesn't really matter as resolution is 8 bit
|
||||
ledcAttachPin(_pins[i], channel);
|
||||
#else
|
||||
ledcAttach(_pins[i], _frequency, _depth - (dithering*4));
|
||||
ledcAttach(_pins[i], _frequency, _depth - (dithering*4), channel);
|
||||
// LEDC timer reset credit @dedehai
|
||||
#endif
|
||||
// LEDC timer reset credit @dedehai
|
||||
|
||||
Reference in New Issue
Block a user