We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In C_Tutorial.pdf on page 63 of Chapter 5 (RGBLED) there is an inappropriate part of the code to explain the code itself.
That code is in there now:
void setColor(long rgb) { ledcWrite(chns[0], 255 - (rgb >> 16) & 0xFF); ledcWrite(chns[1], 255 - (rgb >> 8) & 0xFF); ledcWrite(chns[2], 255 - (rgb >> 0) & 0xFF); }
This example is probably copied from the ESP32 C tutorial. Instead, there should be this code:
void setColor(long rgb) { analogWrite(ledPins[0], 255 - (rgb >> 16) & 0xFF); analogWrite(ledPins[1], 255 - (rgb >> 8) & 0xFF); analogWrite(ledPins[2], 255 - (rgb >> 0) & 0xFF); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In C_Tutorial.pdf on page 63 of Chapter 5 (RGBLED) there is an inappropriate part of the code to explain the code itself.
That code is in there now:
This example is probably copied from the ESP32 C tutorial. Instead, there should be this code:
The text was updated successfully, but these errors were encountered: