pinout.vvzero.com/src/zh/translate/pi-liter.md

86 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2022-01-05 23:15:31 +08:00
<!--
---
name: Pi-LITE-r
class: board
type: led
formfactor: Custom
manufacturer: Ciseco
collected: Other
description: An 8 LED strip for the Raspberry Pi
url: http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter
image: 'pi-liter.png'
pincount: 26
eeprom: no
power:
'1':
ground:
'6':
'9':
'14':
'20':
'25':
pin:
'7':
name: LED1
direction: output
active: high
'11':
name: LED2
direction: output
active: high
'12':
name: LED4
direction: output
active: high
'13':
name: LED3
direction: output
active: high
'15':
name: LED5
direction: output
active: high
'16':
name: LED6
direction: output
active: high
'18':
name: LED7
direction: output
active: high
'22':
name: LED8
direction: output
active: high
-->
# Pi-LITE-r
The Pi-LITEr is a fully assembled add on board for the Raspberry Pi. It has 8 ultra-bright white LED's on a board which plugs directly onto the GPIO header. It can be used alongside other I/O projects to give status indication. Lighting all 8 LEDs consumes a tiny amount of current, less than a single standard LED (which is 20ma nominal vs 14.4ma for the Pi-LITEr).
## Applications
* I/O status indicator
* Bar graph
* Light chaser
* Activity indicator
* Lighting effects
## Code
```python
from gpiozero import PiLiter
from time import sleep
lite = PiLiter()
for led in lite:
led.on()
sleep(0.1)
led.off()
lite.on()
sleep(5)
```
[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter)