The buttons are wired to pins 2 and 3, with a 10K ohm resistor between the 5v source and the pin and button. The RGB LED is wired to pins 9 (blue), 10 (green) and 11 (red), with a 330 ohm resistor between each pin and the LED. The colors should be as following, and need to cycle in this order. White, red, blue, green, aqua(green/blue), yellow(red/green) and purple(red/blue). These need to act as if they're fixed to a color wheel and the buttons are used to rotate the wheel backwards or forwards, one step/color at a time.