2015-04-18 23:39:08 +08:00
<!--
---
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
2015-04-18 23:39:08 +08:00
description: Raspberry Pi RGB ledlerine sahip bir kart
2016-07-27 22:35:53 +08:00
url: https://www.piborg.org/ledborg-new/install
2015-04-18 23:39:08 +08:00
buy: https://www.piborg.org/ledborg
2016-07-27 22:35:53 +08:00
image: 'piborg-led-borg.png'
2015-12-29 23:34:00 +08:00
pincount: 26
2016-07-27 22:35:53 +08:00
eeprom: no
2015-04-18 23:39:08 +08:00
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
2015-03-31 22:34:27 +08:00
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.
2015-03-31 22:34:27 +08:00
```python
2016-10-18 06:21:07 +08:00
from gpiozero import LedBorg
from time import sleep
lb = LedBorg()
2015-03-31 22:34:27 +08:00
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)
```
2015-03-31 22:34:27 +08:00
2016-10-18 06:21:07 +08:00
[GPIO Zero docs ](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#ledborg )