About this document
RGB LED Control via ASCII Input by Dinh Huu Khang (K16HCM) is a document available to read on EtoBox.
This sketch uses Serial.parseInt() to read RGB color values separated by commas from the serial monitor. It controls the brightness of a common anode RGB LED based on the parsed values by writing analog values to the LED pins after constraining the values and inverting them for the common anode LED. It sends the final RGB values back to the serial monitor in hexadecimal format.
- Author
- Dinh Huu Khang (K16HCM)
- Language
- EN