# Welcome

This documentation will guide you through the methods available in the Rainbow HAT python library.

Rainbow HAT is a Raspberry Pi add-on designed for Android Things, it includes:

- 3 capacitive touch buttons
- 3 LEDs: Red, Green and Blue
- 7 RGB LEDs (APA102)
- A four-character “star” display
- A temperature/pressure sensor
- More information - https://shop.pimoroni.com/products/rainbow-hat
- GPIO Pinout - http://pinout.xyz/pinout/rainbow_hat
- Get the code - https://github.com/pimoroni/rainbow-hat
- Get help - http://forums.pimoroni.com/c/support

# At A Glance

`buzzer.``note`(frequency, duration=1.0)

`buzzer.``midi_note`(note_number, duration=1.0)

`buzzer.``clear_timeout`()

`buzzer.``stop`()

`rainbow.``set_brightness`(brightness)

`rainbow.``clear`()

`rainbow.``show`()

`rainbow.``set_all`(r, g, b, brightness=None)

`rainbow.``set_pixel`(x, r, g, b, brightness=None)

`rainbow.``set_clear_on_exit`(value=True)

`weather.``temperature`()

`weather.``pressure`()

`weather.``altitude`(qnh=1020)

`weather.``update`()

`rainbowhat.``Lights`

`rainbowhat.``touch`