diff --git a/draft/boards/modmypi-star.png b/resources/boards/modmypi-star.png similarity index 100% rename from draft/boards/modmypi-star.png rename to resources/boards/modmypi-star.png diff --git a/draft/overlay/modmypi-star.md b/src/de/translate/modmypi-star.md similarity index 85% rename from draft/overlay/modmypi-star.md rename to src/de/translate/modmypi-star.md index 5d00b43..57f9cc4 100644 --- a/draft/overlay/modmypi-star.md +++ b/src/de/translate/modmypi-star.md @@ -25,107 +25,107 @@ ground: '39': pin: '3': - name: LED Inner + name: Inner mode: output active: high '5': - name: LED S + name: S mode: output active: high '7': - name: LED R + name: R mode: output active: high '8': - name: LED T + name: T mode: output active: high '10': - name: LED W + name: W mode: output active: high '11': - name: LED Q + name: Q mode: output active: high '12': - name: LED V + name: V mode: output active: high '13': - name: LED P + name: P mode: output active: high '15': - name: LED O + name: O mode: output active: high '16': - name: LED U + name: U mode: output active: high '18': - name: LED X + name: X mode: output active: high '19': - name: LED N + name: N mode: output active: high '21': - name: LED M + name: M mode: output active: high '22': - name: LED Y + name: Y mode: output active: high '23': - name: LED L + name: L mode: output active: high '24': - name: LED B + name: B mode: output active: high '26': - name: LED A + name: A mode: output active: high '29': - name: LED K + name: K mode: output active: high '31': - name: LED J + name: J mode: output active: high '32': - name: LED C + name: C mode: output active: high '33': - name: LED I + name: I mode: output active: high '35': - name: LED H + name: H mode: output active: high '36': - name: LED F + name: F mode: output active: high '37': - name: LED G + name: G mode: output active: high '38': - name: LED E + name: E mode: output active: high '40': - name: LED D + name: D mode: output active: high --> diff --git a/src/en/overlay/modmypi-star.md b/src/en/overlay/modmypi-star.md new file mode 100644 index 0000000..57f9cc4 --- /dev/null +++ b/src/en/overlay/modmypi-star.md @@ -0,0 +1,170 @@ + +# 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() +``` \ No newline at end of file diff --git a/src/es/translate/modmypi-star.md b/src/es/translate/modmypi-star.md new file mode 100644 index 0000000..57f9cc4 --- /dev/null +++ b/src/es/translate/modmypi-star.md @@ -0,0 +1,170 @@ + +# 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() +``` \ No newline at end of file diff --git a/src/fr/translate/modmypi-star.md b/src/fr/translate/modmypi-star.md new file mode 100644 index 0000000..57f9cc4 --- /dev/null +++ b/src/fr/translate/modmypi-star.md @@ -0,0 +1,170 @@ + +# 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() +``` \ No newline at end of file diff --git a/src/it/translate/modmypi-star.md b/src/it/translate/modmypi-star.md new file mode 100644 index 0000000..57f9cc4 --- /dev/null +++ b/src/it/translate/modmypi-star.md @@ -0,0 +1,170 @@ + +# 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() +``` \ No newline at end of file diff --git a/src/tr/translate/modmypi-star.md b/src/tr/translate/modmypi-star.md new file mode 100644 index 0000000..57f9cc4 --- /dev/null +++ b/src/tr/translate/modmypi-star.md @@ -0,0 +1,170 @@ + +# 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() +``` \ No newline at end of file