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:

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[source]
rainbowhat.touch