top of page

RGB Light Mixer

Light Mixer Program
Uses an RGB LED on Port C and two variable resistors on pin B1 and B2.
B1 controls the RED LED on C1.
B2 controls the RED LED on C2.

Program


---

Light Mixer Program

Uses an RGB LED on Port C and two

variable resistors on pin B1 and B2.

B1 controls the RED LED on C1.

B2 controls the RED LED on C2.

---

prog_vars =

d/a 0

prog_vars.


prog_start =


-- Setup the RED LED control, B1

gvr b1 0 100 c1

pwm c1 50

-- Setup the GREEN LED control, B2

gvr b2 0 100 c2

pwm c2 50

prog_start.


prog_loop =

exitnow

prog_loop.


prog_stop =

"Good bye"

prog_stop.


bottom of page