Skip to content

Support for Arduino ESP32 3.0 API migration #16

@The39thBit

Description

@The39thBit

The API Change currently breaks this project specifically in the RGBLed Constructor for ESP-32 based projects

Maybe change from

        ledcSetup(0, 5000, 8);
	ledcSetup(1, 5000, 8);
	ledcSetup(2, 5000, 8);

	ledcAttachPin(_red, 0);
	ledcAttachPin(_green, 1);
	ledcAttachPin(_blue, 2);

to something like?

        ledcAttachChannel(_red, 5000, 8, 0);
	ledcAttachChannel(_green, 5000, 8, 1);
	ledcAttachChannel(_blue, 50000, 8, 2);

in RGB.cpp

There is also the automatic channel finding of 'ledcAttach()'

Thanks for your work on the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions