pinout.vvzero.com/src/tr/overlay/piborg-ledborg.md

58 lines
1.2 KiB
Markdown
Raw Normal View History

<!--
---
2016-07-27 22:35:53 +08:00
name: LEDBorg
2016-07-27 19:17:56 +08:00
class: board
type: hepsi
2016-07-27 20:07:05 +08:00
formfactor: diğer
manufacturer: PiBorg
description: Raspberry Pi RGB ledlerine sahip bir kart
2016-07-27 22:35:53 +08:00
url: https://www.piborg.org/ledborg-new/install
buy: https://www.piborg.org/ledborg
2016-07-27 22:35:53 +08:00
image: 'piborg-led-borg.png'
pincount: 26
2016-07-27 22:35:53 +08:00
eeprom: no
pin:
'11':
name: Red LED
direction: output
active: high
description: PiBorg Red LED
'13':
name: Green LED
direction: input
active: high
description: PiBorg Green LED
'15':
name: Blue LED
direction: output
active: high
description: PiBorg Blue LED
-->
2016-10-18 06:21:07 +08:00
# PiBorg LedBorg
2016-10-18 06:21:07 +08:00
PiBorg LedBorg, Raspberry Pi için oldukça hafif bir RGB LED board'udur. Bu board kendisine ait bir sürücü barındırır, bu yüzden ayrıca bir sürücü kurmanıza gerek yok.
```python
2016-10-18 06:21:07 +08:00
from gpiozero import LedBorg
from time import sleep
lb = LedBorg()
2016-10-18 06:21:07 +08:00
while True:
r, g, b = 0, 0, 0
for i in range(100):
r = i / 100
lb.value = (r, g, b)
sleep(0.01)
for i in range(100):
g = i / 100
sleep(0.01)
lb.value = (r, g, b)
for i in range(100):
b = i / 100
lb.value = (r, g, b)
sleep(0.01)
```
2016-10-18 06:21:07 +08:00
[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#ledborg)