Published ModMyPi Star
This commit is contained in:
parent
465df6a3b5
commit
fd9360741e
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
@ -25,107 +25,107 @@ ground:
|
|||||||
'39':
|
'39':
|
||||||
pin:
|
pin:
|
||||||
'3':
|
'3':
|
||||||
name: LED Inner
|
name: Inner
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'5':
|
'5':
|
||||||
name: LED S
|
name: S
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'7':
|
'7':
|
||||||
name: LED R
|
name: R
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'8':
|
'8':
|
||||||
name: LED T
|
name: T
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'10':
|
'10':
|
||||||
name: LED W
|
name: W
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'11':
|
'11':
|
||||||
name: LED Q
|
name: Q
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'12':
|
'12':
|
||||||
name: LED V
|
name: V
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'13':
|
'13':
|
||||||
name: LED P
|
name: P
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'15':
|
'15':
|
||||||
name: LED O
|
name: O
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'16':
|
'16':
|
||||||
name: LED U
|
name: U
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'18':
|
'18':
|
||||||
name: LED X
|
name: X
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'19':
|
'19':
|
||||||
name: LED N
|
name: N
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'21':
|
'21':
|
||||||
name: LED M
|
name: M
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'22':
|
'22':
|
||||||
name: LED Y
|
name: Y
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'23':
|
'23':
|
||||||
name: LED L
|
name: L
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'24':
|
'24':
|
||||||
name: LED B
|
name: B
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'26':
|
'26':
|
||||||
name: LED A
|
name: A
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'29':
|
'29':
|
||||||
name: LED K
|
name: K
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'31':
|
'31':
|
||||||
name: LED J
|
name: J
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'32':
|
'32':
|
||||||
name: LED C
|
name: C
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'33':
|
'33':
|
||||||
name: LED I
|
name: I
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'35':
|
'35':
|
||||||
name: LED H
|
name: H
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'36':
|
'36':
|
||||||
name: LED F
|
name: F
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'37':
|
'37':
|
||||||
name: LED G
|
name: G
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'38':
|
'38':
|
||||||
name: LED E
|
name: E
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
'40':
|
'40':
|
||||||
name: LED D
|
name: D
|
||||||
mode: output
|
mode: output
|
||||||
active: high
|
active: high
|
||||||
-->
|
-->
|
170
src/en/overlay/modmypi-star.md
Normal file
170
src/en/overlay/modmypi-star.md
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<!--
|
||||||
|
---
|
||||||
|
name: Christmas Tree Star
|
||||||
|
class: board
|
||||||
|
type: LED
|
||||||
|
formfactor: Custom
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A star shaped LED add-on board for the Raspberry Pi which can be used as a Christmas Tree topper.
|
||||||
|
url: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
github: https://github.com/modmypi/Programmable-Christmas-Star
|
||||||
|
buy: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
image: 'modmypi-star.png'
|
||||||
|
pincount: 40
|
||||||
|
eeprom: no
|
||||||
|
power:
|
||||||
|
'2':
|
||||||
|
ground:
|
||||||
|
'6':
|
||||||
|
'9':
|
||||||
|
'14':
|
||||||
|
'20':
|
||||||
|
'25':
|
||||||
|
'30':
|
||||||
|
'34':
|
||||||
|
'39':
|
||||||
|
pin:
|
||||||
|
'3':
|
||||||
|
name: Inner
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'5':
|
||||||
|
name: S
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'7':
|
||||||
|
name: R
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'8':
|
||||||
|
name: T
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'10':
|
||||||
|
name: W
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'11':
|
||||||
|
name: Q
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'12':
|
||||||
|
name: V
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'13':
|
||||||
|
name: P
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'15':
|
||||||
|
name: O
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'16':
|
||||||
|
name: U
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'18':
|
||||||
|
name: X
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'19':
|
||||||
|
name: N
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'21':
|
||||||
|
name: M
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'22':
|
||||||
|
name: Y
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'23':
|
||||||
|
name: L
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'24':
|
||||||
|
name: B
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'26':
|
||||||
|
name: A
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'29':
|
||||||
|
name: K
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'31':
|
||||||
|
name: J
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'32':
|
||||||
|
name: C
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'33':
|
||||||
|
name: I
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'35':
|
||||||
|
name: H
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'36':
|
||||||
|
name: F
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'37':
|
||||||
|
name: G
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'38':
|
||||||
|
name: E
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'40':
|
||||||
|
name: D
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
-->
|
||||||
|
# Christmas Tree Star
|
||||||
|
|
||||||
|
The ModMy Pi Christmas Tree Star is an LED add-on board for the Raspberry Pi designed to go on top of your Christmas tree. There are 30 white LEDs controllable through a Python library which extends GPIO Zero and is available on GitHub.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- 30 white LEDs
|
||||||
|
- GPIO Zero compatible library.
|
||||||
|
- Mounting points for Raspberry Pi Zero.
|
||||||
|
- [Christmas Tree build guide](https://www.modmypi.com/blog/christmas-tree-star-guide)
|
||||||
|
|
||||||
|
## Sample Code
|
||||||
|
```
|
||||||
|
from star import Star
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
# Initialise the star
|
||||||
|
star = Star()
|
||||||
|
|
||||||
|
# Turn the star on and off.
|
||||||
|
star.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn the inner and outer LEDs off.
|
||||||
|
star.outer.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
star.inner.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn on individual LEDs on the outer rim.
|
||||||
|
star.outer.A.on()
|
||||||
|
star.outer.F.on()
|
||||||
|
star.outer.P.on()
|
||||||
|
star.outer.X.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
```
|
170
src/es/translate/modmypi-star.md
Normal file
170
src/es/translate/modmypi-star.md
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<!--
|
||||||
|
---
|
||||||
|
name: Christmas Tree Star
|
||||||
|
class: board
|
||||||
|
type: LED
|
||||||
|
formfactor: Custom
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A star shaped LED add-on board for the Raspberry Pi which can be used as a Christmas Tree topper.
|
||||||
|
url: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
github: https://github.com/modmypi/Programmable-Christmas-Star
|
||||||
|
buy: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
image: 'modmypi-star.png'
|
||||||
|
pincount: 40
|
||||||
|
eeprom: no
|
||||||
|
power:
|
||||||
|
'2':
|
||||||
|
ground:
|
||||||
|
'6':
|
||||||
|
'9':
|
||||||
|
'14':
|
||||||
|
'20':
|
||||||
|
'25':
|
||||||
|
'30':
|
||||||
|
'34':
|
||||||
|
'39':
|
||||||
|
pin:
|
||||||
|
'3':
|
||||||
|
name: Inner
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'5':
|
||||||
|
name: S
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'7':
|
||||||
|
name: R
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'8':
|
||||||
|
name: T
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'10':
|
||||||
|
name: W
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'11':
|
||||||
|
name: Q
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'12':
|
||||||
|
name: V
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'13':
|
||||||
|
name: P
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'15':
|
||||||
|
name: O
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'16':
|
||||||
|
name: U
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'18':
|
||||||
|
name: X
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'19':
|
||||||
|
name: N
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'21':
|
||||||
|
name: M
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'22':
|
||||||
|
name: Y
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'23':
|
||||||
|
name: L
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'24':
|
||||||
|
name: B
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'26':
|
||||||
|
name: A
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'29':
|
||||||
|
name: K
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'31':
|
||||||
|
name: J
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'32':
|
||||||
|
name: C
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'33':
|
||||||
|
name: I
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'35':
|
||||||
|
name: H
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'36':
|
||||||
|
name: F
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'37':
|
||||||
|
name: G
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'38':
|
||||||
|
name: E
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'40':
|
||||||
|
name: D
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
-->
|
||||||
|
# Christmas Tree Star
|
||||||
|
|
||||||
|
The ModMy Pi Christmas Tree Star is an LED add-on board for the Raspberry Pi designed to go on top of your Christmas tree. There are 30 white LEDs controllable through a Python library which extends GPIO Zero and is available on GitHub.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- 30 white LEDs
|
||||||
|
- GPIO Zero compatible library.
|
||||||
|
- Mounting points for Raspberry Pi Zero.
|
||||||
|
- [Christmas Tree build guide](https://www.modmypi.com/blog/christmas-tree-star-guide)
|
||||||
|
|
||||||
|
## Sample Code
|
||||||
|
```
|
||||||
|
from star import Star
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
# Initialise the star
|
||||||
|
star = Star()
|
||||||
|
|
||||||
|
# Turn the star on and off.
|
||||||
|
star.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn the inner and outer LEDs off.
|
||||||
|
star.outer.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
star.inner.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn on individual LEDs on the outer rim.
|
||||||
|
star.outer.A.on()
|
||||||
|
star.outer.F.on()
|
||||||
|
star.outer.P.on()
|
||||||
|
star.outer.X.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
```
|
170
src/fr/translate/modmypi-star.md
Normal file
170
src/fr/translate/modmypi-star.md
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<!--
|
||||||
|
---
|
||||||
|
name: Christmas Tree Star
|
||||||
|
class: board
|
||||||
|
type: LED
|
||||||
|
formfactor: Custom
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A star shaped LED add-on board for the Raspberry Pi which can be used as a Christmas Tree topper.
|
||||||
|
url: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
github: https://github.com/modmypi/Programmable-Christmas-Star
|
||||||
|
buy: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
image: 'modmypi-star.png'
|
||||||
|
pincount: 40
|
||||||
|
eeprom: no
|
||||||
|
power:
|
||||||
|
'2':
|
||||||
|
ground:
|
||||||
|
'6':
|
||||||
|
'9':
|
||||||
|
'14':
|
||||||
|
'20':
|
||||||
|
'25':
|
||||||
|
'30':
|
||||||
|
'34':
|
||||||
|
'39':
|
||||||
|
pin:
|
||||||
|
'3':
|
||||||
|
name: Inner
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'5':
|
||||||
|
name: S
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'7':
|
||||||
|
name: R
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'8':
|
||||||
|
name: T
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'10':
|
||||||
|
name: W
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'11':
|
||||||
|
name: Q
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'12':
|
||||||
|
name: V
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'13':
|
||||||
|
name: P
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'15':
|
||||||
|
name: O
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'16':
|
||||||
|
name: U
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'18':
|
||||||
|
name: X
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'19':
|
||||||
|
name: N
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'21':
|
||||||
|
name: M
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'22':
|
||||||
|
name: Y
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'23':
|
||||||
|
name: L
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'24':
|
||||||
|
name: B
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'26':
|
||||||
|
name: A
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'29':
|
||||||
|
name: K
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'31':
|
||||||
|
name: J
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'32':
|
||||||
|
name: C
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'33':
|
||||||
|
name: I
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'35':
|
||||||
|
name: H
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'36':
|
||||||
|
name: F
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'37':
|
||||||
|
name: G
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'38':
|
||||||
|
name: E
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'40':
|
||||||
|
name: D
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
-->
|
||||||
|
# Christmas Tree Star
|
||||||
|
|
||||||
|
The ModMy Pi Christmas Tree Star is an LED add-on board for the Raspberry Pi designed to go on top of your Christmas tree. There are 30 white LEDs controllable through a Python library which extends GPIO Zero and is available on GitHub.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- 30 white LEDs
|
||||||
|
- GPIO Zero compatible library.
|
||||||
|
- Mounting points for Raspberry Pi Zero.
|
||||||
|
- [Christmas Tree build guide](https://www.modmypi.com/blog/christmas-tree-star-guide)
|
||||||
|
|
||||||
|
## Sample Code
|
||||||
|
```
|
||||||
|
from star import Star
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
# Initialise the star
|
||||||
|
star = Star()
|
||||||
|
|
||||||
|
# Turn the star on and off.
|
||||||
|
star.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn the inner and outer LEDs off.
|
||||||
|
star.outer.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
star.inner.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn on individual LEDs on the outer rim.
|
||||||
|
star.outer.A.on()
|
||||||
|
star.outer.F.on()
|
||||||
|
star.outer.P.on()
|
||||||
|
star.outer.X.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
```
|
170
src/it/translate/modmypi-star.md
Normal file
170
src/it/translate/modmypi-star.md
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<!--
|
||||||
|
---
|
||||||
|
name: Christmas Tree Star
|
||||||
|
class: board
|
||||||
|
type: LED
|
||||||
|
formfactor: Custom
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A star shaped LED add-on board for the Raspberry Pi which can be used as a Christmas Tree topper.
|
||||||
|
url: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
github: https://github.com/modmypi/Programmable-Christmas-Star
|
||||||
|
buy: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
image: 'modmypi-star.png'
|
||||||
|
pincount: 40
|
||||||
|
eeprom: no
|
||||||
|
power:
|
||||||
|
'2':
|
||||||
|
ground:
|
||||||
|
'6':
|
||||||
|
'9':
|
||||||
|
'14':
|
||||||
|
'20':
|
||||||
|
'25':
|
||||||
|
'30':
|
||||||
|
'34':
|
||||||
|
'39':
|
||||||
|
pin:
|
||||||
|
'3':
|
||||||
|
name: Inner
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'5':
|
||||||
|
name: S
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'7':
|
||||||
|
name: R
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'8':
|
||||||
|
name: T
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'10':
|
||||||
|
name: W
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'11':
|
||||||
|
name: Q
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'12':
|
||||||
|
name: V
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'13':
|
||||||
|
name: P
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'15':
|
||||||
|
name: O
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'16':
|
||||||
|
name: U
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'18':
|
||||||
|
name: X
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'19':
|
||||||
|
name: N
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'21':
|
||||||
|
name: M
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'22':
|
||||||
|
name: Y
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'23':
|
||||||
|
name: L
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'24':
|
||||||
|
name: B
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'26':
|
||||||
|
name: A
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'29':
|
||||||
|
name: K
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'31':
|
||||||
|
name: J
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'32':
|
||||||
|
name: C
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'33':
|
||||||
|
name: I
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'35':
|
||||||
|
name: H
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'36':
|
||||||
|
name: F
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'37':
|
||||||
|
name: G
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'38':
|
||||||
|
name: E
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'40':
|
||||||
|
name: D
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
-->
|
||||||
|
# Christmas Tree Star
|
||||||
|
|
||||||
|
The ModMy Pi Christmas Tree Star is an LED add-on board for the Raspberry Pi designed to go on top of your Christmas tree. There are 30 white LEDs controllable through a Python library which extends GPIO Zero and is available on GitHub.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- 30 white LEDs
|
||||||
|
- GPIO Zero compatible library.
|
||||||
|
- Mounting points for Raspberry Pi Zero.
|
||||||
|
- [Christmas Tree build guide](https://www.modmypi.com/blog/christmas-tree-star-guide)
|
||||||
|
|
||||||
|
## Sample Code
|
||||||
|
```
|
||||||
|
from star import Star
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
# Initialise the star
|
||||||
|
star = Star()
|
||||||
|
|
||||||
|
# Turn the star on and off.
|
||||||
|
star.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn the inner and outer LEDs off.
|
||||||
|
star.outer.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
star.inner.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn on individual LEDs on the outer rim.
|
||||||
|
star.outer.A.on()
|
||||||
|
star.outer.F.on()
|
||||||
|
star.outer.P.on()
|
||||||
|
star.outer.X.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
```
|
170
src/tr/translate/modmypi-star.md
Normal file
170
src/tr/translate/modmypi-star.md
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
<!--
|
||||||
|
---
|
||||||
|
name: Christmas Tree Star
|
||||||
|
class: board
|
||||||
|
type: LED
|
||||||
|
formfactor: Custom
|
||||||
|
manufacturer: ModMyPi
|
||||||
|
description: A star shaped LED add-on board for the Raspberry Pi which can be used as a Christmas Tree topper.
|
||||||
|
url: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
github: https://github.com/modmypi/Programmable-Christmas-Star
|
||||||
|
buy: https://www.modmypi.com/raspberry-pi-christmas-tree-star
|
||||||
|
image: 'modmypi-star.png'
|
||||||
|
pincount: 40
|
||||||
|
eeprom: no
|
||||||
|
power:
|
||||||
|
'2':
|
||||||
|
ground:
|
||||||
|
'6':
|
||||||
|
'9':
|
||||||
|
'14':
|
||||||
|
'20':
|
||||||
|
'25':
|
||||||
|
'30':
|
||||||
|
'34':
|
||||||
|
'39':
|
||||||
|
pin:
|
||||||
|
'3':
|
||||||
|
name: Inner
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'5':
|
||||||
|
name: S
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'7':
|
||||||
|
name: R
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'8':
|
||||||
|
name: T
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'10':
|
||||||
|
name: W
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'11':
|
||||||
|
name: Q
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'12':
|
||||||
|
name: V
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'13':
|
||||||
|
name: P
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'15':
|
||||||
|
name: O
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'16':
|
||||||
|
name: U
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'18':
|
||||||
|
name: X
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'19':
|
||||||
|
name: N
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'21':
|
||||||
|
name: M
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'22':
|
||||||
|
name: Y
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'23':
|
||||||
|
name: L
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'24':
|
||||||
|
name: B
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'26':
|
||||||
|
name: A
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'29':
|
||||||
|
name: K
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'31':
|
||||||
|
name: J
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'32':
|
||||||
|
name: C
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'33':
|
||||||
|
name: I
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'35':
|
||||||
|
name: H
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'36':
|
||||||
|
name: F
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'37':
|
||||||
|
name: G
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'38':
|
||||||
|
name: E
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
'40':
|
||||||
|
name: D
|
||||||
|
mode: output
|
||||||
|
active: high
|
||||||
|
-->
|
||||||
|
# Christmas Tree Star
|
||||||
|
|
||||||
|
The ModMy Pi Christmas Tree Star is an LED add-on board for the Raspberry Pi designed to go on top of your Christmas tree. There are 30 white LEDs controllable through a Python library which extends GPIO Zero and is available on GitHub.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- 30 white LEDs
|
||||||
|
- GPIO Zero compatible library.
|
||||||
|
- Mounting points for Raspberry Pi Zero.
|
||||||
|
- [Christmas Tree build guide](https://www.modmypi.com/blog/christmas-tree-star-guide)
|
||||||
|
|
||||||
|
## Sample Code
|
||||||
|
```
|
||||||
|
from star import Star
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
# Initialise the star
|
||||||
|
star = Star()
|
||||||
|
|
||||||
|
# Turn the star on and off.
|
||||||
|
star.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn the inner and outer LEDs off.
|
||||||
|
star.outer.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
star.inner.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
|
||||||
|
# Turn on individual LEDs on the outer rim.
|
||||||
|
star.outer.A.on()
|
||||||
|
star.outer.F.on()
|
||||||
|
star.outer.P.on()
|
||||||
|
star.outer.X.on()
|
||||||
|
sleep(1)
|
||||||
|
star.off()
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user