We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a04720 commit de211f8Copy full SHA for de211f8
library.json
@@ -15,7 +15,7 @@
15
"url": "https://github.com/ClusterDuck-Protocol/ClusterDuck-Protocol"
16
},
17
"frameworks": "arduino",
18
- "platforms": ["espressif32"],
+ "platforms": ["espressif32@6.3.1"],
19
"license": "Apache-2.0",
20
"export": {
21
"include": [
src/DuckLed.cpp
@@ -10,16 +10,16 @@ DuckLed* DuckLed::getInstance() {
10
11
void DuckLed::setupLED(int redPin, int greenPin, int bluePin) {
12
#ifdef ESP32
13
- ledcAttach(redPin, 12000, 8); // assign RGB led pins to channels
14
- ledcAttach(greenPin, 12000, 8);
- ledcAttach(bluePin, 12000, 8);
+ ledcAttachPin(redPin, 1); // assign RGB led pins to channels
+ ledcAttachPin(greenPin, 2);
+ ledcAttachPin(bluePin, 3);
// Initialize channels
// channels 0-15, resolution 1-16 bits, freq limits depend on resolution
// ledcSetup(uint8_t channel, uint32_t freq, uint8_t resolution_bits);
- // ledcSetup(1, 12000, 8); // 12 kHz PWM, 8-bit resolution
- // ledcSetup(2, 12000, 8);
22
- // ledcSetup(3, 12000, 8);
+ ledcSetup(1, 12000, 8); // 12 kHz PWM, 8-bit resolution
+ ledcSetup(2, 12000, 8);
+ ledcSetup(3, 12000, 8);
23
24
// ledcAttachChannel(redPin, 12000, 8, 1);
25
// ledcAttachChannel(greenPin, 12000, 8, 2);
0 commit comments