This documentation will guide you through the methods available in the Button SHIM python library.
Button SHIM is a tiny Raspberry Pi add-on with 5 tactile buttons and one teeny RGB LED.
Set The Pixel¶
set_pixel(r, g, b)
Set the Button SHIM RGB pixel
Display an RGB colour on the Button SHIM pixel.
- r – Amount of red, from 0 to 255
- g – Amount of green, from 0 to 255
- b – Amount of blue, from 0 to 255
You can use HTML colours directly with hexadecimal notation in Python. EG:
buttonshim.set_pixel(0xFF, 0x00, 0xFF)