You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The smoothLED class instantiation has no parameters, the LED isn't initialized until the begin() method is called. One instance of the class is declared for each LED, as many as there are pins on the Arduino.
Example:
...
...
smoothLED Board; // Instantiate on-board LED
...
...
Serial.print(F("BOARD LED: "));
if (Board.begin(LED_BUILTIN)) // Start the "Board" instance on pin 13
Serial.println(F("OK"));
else
Serial.println(F("ERROR!"));
Board.set(128); // set to 50% duty cycle
...
...