Introduction
It’s possible to draw multiple components of different kinds on the MicroView screen at once.
In this blog, the three inputs to an RGB LED are controlled using pulse width modulation (PWM) signals. The three sliders are set up with simple labels ‘R’, ‘G’ or ‘B’ to the left. Each colour is raised to full brightness, then dimmed in sequence. The sliders show this graphically and display the current PWM value from 0-256 in real time.
Circuit
Pins referenced in code as 3, 5 and 6 (numerical pins 12 to 14) are capable of PWM on the MicroView. These are connected to the LED via 330 ohm resistors in the usual way, with the COMMON of the LED connected to pin 8 (GND).

Continue reading “MicroView sliders with text labels using RGB LED”