Skip to main content
Rainbow HAT

Rainbow HAT is a flexible IO exploration board with multiple devices covering i2c, SPI, generic GPIO.

This repository contains the Pimoroni Python driver for Rainbow HAT, for use with Raspbiban on your Raspberry Pi.

For the official AndroidThings driver see: https://github.com/androidthings/contrib-drivers/tree/master/rainbowhat

Installation

Full install ( recommended ):

We’ve created a super-easy installation script that will install all pre-requisites and get your Rainbow HAT up and running in a jiffy. To run it fire up Terminal which you’ll find in Menu -> Accessories -> Terminal on your Raspberry Pi desktop like so:

Finding the terminal

In the new terminal window type:

curl https://get.pimoroni.com/rainbowhat | bash

If you choose to download examples you’ll find them in /home/pi/Pimoroni/rainbowhat.

Library install for Python 3:

on Raspbian:

sudo apt-get install python3-rainbowhat

other environments:

sudo pip3 install rainbowhat

Library install for Python 2:

on Raspbian:

sudo apt-get install python-rainbowhat

other environments:

sudo pip2 install rainbowhat

Documentation & Support

0.1.0

  • Change: Pressure readings now output as hPa rather than Pa

  • Change: Removed hard calls to exit() to fix behaviour in IDLE

  • Change: Defer device setup until methods are called

  • Fix: Added delay to APA102 output to fix instability under high load

0.0.2

  • Bugfix: Fixed length calculation in print_number_str

0.0.1

  • Initial release

Release files for rainbowhat 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rainbowhat 0.1.0
File Size Uploaded
rainbowhat-0.1.0.tar.gz 12.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rainbowhat 0.1.0
File Interpreter ABI Platform
rainbowhat-0.1.0-py3-none-any.whl Python 3 none any Details
rainbowhat-0.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 43.9 kB

Release files / rainbowhat-0.1.0.tar.gz

Download URL rainbowhat-0.1.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fdbe3d0086d3e80d7016220e21b5cbf165e73c5f52895821f725fad2d7b5eb0d
BLAKE2b-256 checksum
How to use checksums
0f5878eb648e6c72afdab145ac00619349ae5796d7651e8c37d804729c7fd5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rainbowhat-0.1.0-py3-none-any.whl

Download URL rainbowhat-0.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7c5861766984f9aef2458de96b23d223e9f01f86093076183ae632ad3d6dddc
BLAKE2b-256 checksum
How to use checksums
7d7e3602b5a0d9c8a0a0ed7739c90e1fe67e033884f07f8156d26c97a9ae98ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rainbowhat-0.1.0-py2-none-any.whl

Download URL rainbowhat-0.1.0-py2-none-any.whl
Size 15.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
aeb2339af0b97a3c75e2340685d4e9c1b19c2abd6c6790c7958cb6586834d1bc
BLAKE2b-256 checksum
How to use checksums
37c62d474d2ba5f811496cedaba50421565c132f543ff59f6513c38b99d6e3a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page