Assignment 2: LED Color Picker

The circuit shown above is a 3 pin led connected to a joystick. It uses the JoyStick movement to change the RGB values and the button press in the joystick is used to switch between states. The system has 5 states

  1. All off
  2.  Red constant, change G and B by moving the joystick
  3.  Green constant, change R and G by moving the joystick
  4. Blue constant, change others through joystick
  5. All on.

Reflection:  if I were to redo this, I would transfer the states from 2, 3 and 4 making it a real color picker, and I also think the joystick button may not be ideal for an interrupt.

Code and Files: A2

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.