You can create simple images by setting individual pixels on the 8×8 led matrix to different colors. In these examples we create some basic flags Swedish flag [codesyntax lang=”python”] from sense_hat import SenseHat sense = SenseHat() r = (255, 0, 0) o = (255, 127,…
shedboy71
-
-
These were just some text examples for the Sense hat [codesyntax lang=”python”] from sense_hat import SenseHat from time import sleep sense = SenseHat() green = [0, 255, 0] sense.show_message(“Hello!”, text_colour=green) [/codesyntax] [codesyntax lang=”python”] from sense_hat import SenseHat sense = SenseHat() yellow = (255, 255, 0)…
-
The unicorn pHat is a hat which althoough designed for the Pi Zero also works on other Raspberry Pi’s and has 32 RGB LEDs. There is a python library available for it and also a couple of C examples as well in the github repository…
-
The PCF8591 is a single-chip, single‑supply low‑power 8‑bit CMOS data acquisition device with four analog inputs, one analog output and a serial I²C‑bus interface. Three address pins A0, A1 and A2 are used for programming the hardware address, allowing the use of up to eight…
-
The Scroll pHAT provides a matrix of 55 white LED pixels that is ideal for writing messages, showing graphs, and drawing pictures. Use it to output your IP address, show CPU usage, or just play some basic games. The library actually has a wide range…
-
The RasPiO Analog Zero is an add on ‘hat’ that can be used with any 40 pin Raspberry Pi. This board adds analog input capability to your Raspberry Pi. About the hat The main part of the RasPiO Analog Zero is an MCP3008 8 analog to digital converter.…