The particle events fired are called button1 to button4 with the values of D0 to D4. If you just want to check for buttons pressed, just forget the values.


set_relay switches on and off the relay (0 is off, everything else is on).

set_colour sets the RGB LED to the colour given as hex (for example ff0000 or #ff0000 for red)