Write a Blockly program that changes the color of an RGB LED based on joystick movement.

Blockly
when joystick moved
   if joystick moved to the north
      set RGB LED color to red
   else if joystick moved to the  south
      set RGB LED color to blue
   else if joystick moved to the east
      set RGB LED color to green
   else if joystick moved to the west
      set RGB LED color to yellow

Related Questions