The TCS3472 device provides a digital return of red, green, blue (RGB), and clear light sensing values. An IR blocking filter, integrated on-chip and localized to the color sensing photodiodes, minimizes the IR spectral component of the incoming light and allows color measurements to be…
Code
-
-
The TLV1543C, TLV1543I, and TLV1543M are CMOS 10-bit, switched-capacitor, successive-approximation, analog-to-digital converters. These devices have three inputs and a 3-state output [chip select (CS\), input-output clock (I/O CLOCK), address input (ADDRESS), and data output (DATA OUT)] that provide a direct 4-wire interface to the serial…
-
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,…
-
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…