Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
79 www.uctronics.com
When using a common anode LED, the common anode should to be connected to the
power supply (VCC); when using a common cathode LED, the common cathode should be
connected to the ground (GND). Each segment of a segment display is composed of LED, so
a resistor is needed for protecting the LED.
A 7-segment display has seven segments for displaying a figure and a segment for
displaying a decimal point. If you want to display a number
1
, you should only light the
segment b and c.
2. Key function
void digitalWriteByte (int value)
This writes the 8-bit byte supplied to the first 8 GPIO pins. Its the fastest way to set all 8 bits
at once to a particular value, although it still takes two write operations to the Pis GPIO
hardware.