Merge remote-tracking branch 'Gadgetoid/master'

This commit is contained in:
Pietro Saccardi 2015-11-13 19:36:16 +01:00
commit 342ceb7e19
34 changed files with 65 additions and 97 deletions

View File

@ -8,7 +8,7 @@ all:
cp -r resources output/$(LANG)/ cp -r resources output/$(LANG)/
clean: clean:
rm -r output/$(LANG)/* rm -rf output/$(LANG)/*
serve: all serve: all
./serve.py $(LANG) ./serve.py $(LANG)

View File

@ -1,13 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python
import json
import markdown import markdown
import unicodedata import unicodedata
import re import re
import os import os
import time
import sys import sys
import pinout import pinout
import yaml
import markjaml import markjaml
import urlmapper import urlmapper
@ -300,7 +297,7 @@ def get_hreflang_urls(src):
for lang in alternate_urls: for lang in alternate_urls:
if src in alternate_urls[lang]: if src in alternate_urls[lang]:
url = alternate_urls[lang][src] url = alternate_urls[lang][src]
hreflang.append('<link rel="alternate" src="{url}" hreflang="{lang}"/>'.format( hreflang.append('<link rel="alternate" href="{url}" hreflang="{lang}"/>'.format(
lang=lang, lang=lang,
url=url url=url
)) ))

View File

@ -3,11 +3,8 @@ import json
import markdown import markdown
import unicodedata import unicodedata
import re import re
import os
import time
import sys import sys
import pinout import pinout
import yaml
import markjaml import markjaml
reload(sys) reload(sys)

View File

@ -1,7 +1,6 @@
import json import json
import yaml import yaml
import time import time
import markdown
DB_FILE = 'pi-pinout.yaml' DB_FILE = 'pi-pinout.yaml'
SETTINGS_FILE = 'settings.yaml' SETTINGS_FILE = 'settings.yaml'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from flask import Flask, redirect, send_from_directory from flask import Flask, send_from_directory
import sys import sys
app = Flask(__name__) app = Flask(__name__)

View File

@ -3,7 +3,7 @@
name: Display-o-Tron HAT name: Display-o-Tron HAT
manufacturer: Pimoroni manufacturer: Pimoroni
url: https://github.com/pimoroni/dot3k url: https://github.com/pimoroni/dot3k
description: A 3-line character LCD with a 6-zone RGB backlight and 6 touch buttons description: Ein 3-zeiliges LCD mit einer 6-Zonen RGB Hintergrundbeleuchtung und 6 Tasten
pincount: 40 pincount: 40
pin: pin:
3: 3:
@ -32,13 +32,13 @@ pin:
--> -->
#Display-o-Tron HAT #Display-o-Tron HAT
Display-o-Tron HAT uses both SPI and I2c to drive the LCD display, backlight and touch. Der Display-o-Tron HAT benutzt den SPI- und I2C-Bus um das LC-Display, die Hintergrundbeleuchtung und die Tasten zu steuern bzw. abzufragen.
However both of these busses can be shared with other devices. Beide Busse können aber weiterhin noch mit anderen Komponenten genutzt werden.
You can use the one-line product installer to get Display-o-Tron HAT set up and ready to go, just: Mit diesem Einzeiler installierst Du den Display-o-Tron HAT:
```bash ```bash
curl get.pimoroni.com/dot3k | bash curl get.pimoroni.com/dot3k | bash
``` ```
And follow the instructions! ...den Rest findest Du in der Anleitung auf Github :-)

View File

@ -4,7 +4,7 @@ name: Display-o-Tron 3000
manufacturer: Pimoroni manufacturer: Pimoroni
github: https://github.com/pimoroni/dot3k github: https://github.com/pimoroni/dot3k
url: https://github.com/pimoroni/dot3k url: https://github.com/pimoroni/dot3k
description: A 3-line character LCD with an RGB backlight and joystick description: Ein 3-zeiliges LCD mit RGB Hintergrundbeleuchtung und Joystick
install: install:
'devices': 'devices':
- 'i2c' - 'i2c'
@ -24,25 +24,25 @@ pin:
5: 5:
mode: i2c mode: i2c
7: 7:
name: Joystick Button name: Joystick Taste
mode: input mode: input
active: low active: low
11: 11:
name: Joystick Left name: Joystick links
mode: input mode: input
active: low active: low
13: 13:
name: Joystick Up name: Joystick oben
mode: input mode: input
active: low active: low
15: 15:
name: Joystick Right name: Joystick rechts
mode: input mode: input
active: low active: low
19: 19:
mode: spi mode: spi
21: 21:
name: Joystick Down name: Joystick unten
mode: input mode: input
active: low active: low
22: 22:
@ -54,10 +54,10 @@ pin:
--> -->
#Display-o-Tron 3000 #Display-o-Tron 3000
You can use the one-line product installer to get Display-o-Tron 3000 set up and ready to go, just: Mit diesem Einzeiler installierst Du das Display-o-Tron 3000:
```bash ```bash
curl get.pimoroni.com/dot3k | bash curl get.pimoroni.com/dot3k | bash
``` ```
And follow the instructions! ...den Rest findest Du in der Anleitung auf Github :-)

View File

@ -1,12 +1,12 @@
<!-- <!--
--- ---
name: Raspberry Pi Dots name: Raspberry Pi Dots
description: Join the dots to make a circuit description: verbinde die Punkte um eine Schaltung zu erstellen
url: http://www.raspberrypi.org/dots/ url: http://www.raspberrypi.org/dots/
github: https://github.com/raspberrypilearning/dots github: https://github.com/raspberrypilearning/dots
pin: pin:
bcm0: bcm0:
name: 'Color: Blue' name: 'Farbe: Blau'
direction: input direction: input
bcm1: bcm1:
name: Dot 7 name: Dot 7
@ -36,7 +36,7 @@ pin:
name: Dot 17 name: Dot 17
direction: input direction: input
bcm10: bcm10:
name: 'Color: Green' name: 'Farbe: Grün'
direction: input direction: input
bcm11: bcm11:
name: Dot 8 name: Dot 8
@ -63,7 +63,7 @@ pin:
name: Dot 20 name: Dot 20
direction: input direction: input
bcm19: bcm19:
name: 'Color: Orange' name: 'Farbe: Orange'
direction: input direction: input
bcm20: bcm20:
name: Bear name: Bear
@ -87,16 +87,18 @@ pin:
name: Dot 11 name: Dot 11
direction: input direction: input
bcm27: bcm27:
name: 'Color: Red' name: 'Farbe: Rot'
direction: input direction: input
--> -->
#Raspberry Pi Dots #Raspberry Pi Dots
###Dots is a Dot to Dot HAT board for the Raspberry Pi that lets you join-the-dots with BARE Conductive Paint! ###Dots ist eine verbinde die Punkte HAT Platine für den Raspberry Pi, auf dem Du Punkte mit leitender Farbe verbindest!
Every Dot on the Dots board is a "floating" metal contact just waiting to be pulled down to ground with a dab of paint. Jeder Punkt auf der Dots-Platine ist ein offener Metallkontakt der darauf wartet mit der Farbe kontaktiert zu werden.
Um einen Punkt auszulesen setze den dazugehörigen Anschluss als Eingang und checke, ob der Kontakt hergestellt ist:
To read a Dot you should set its corresponding pin as an INPUT and make sure it's pulled up like so:
```python ```python
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
@ -105,8 +107,8 @@ GPIO.setup(dot_pin, GPIO.IN, GPIO.PUD_UP)
state = GPIO.input(dot_pin) state = GPIO.input(dot_pin)
``` ```
It's good practise to only turn on the PULLUP when you actually want to read the Dot, so a method like Es ist gute Praxis den Eingang nur auf PULLUP zu schalten, wenn Du den Kontakt auch lesen möchtest.
this is recommended for reading: Somit ist folgender Code empfohlen:
```python ```python
def is_dot_connected(dot_pin): def is_dot_connected(dot_pin):

View File

@ -108,7 +108,7 @@ sudo apt-get install python-pip
sudo pip install explorer-hat sudo pip install explorer-hat
``` ```
Anschliessend die Libraries in Dein Python-Skript importieren und basteln: Anschliessend die Libraries in Dein Python-Skript importieren und anfangen zu basteln:
```bash ```bash
import explorerhat import explorerhat

View File

@ -1,7 +1,7 @@
<!-- <!--
--- ---
name: I2C name: I2C
description: Raspberry Pi i2c pins description: Raspberry Pi I2C Anschlüsse
pin: pin:
'3': '3':
name: Data name: Data
@ -23,22 +23,23 @@ pin:
--> -->
#I2C - Inter Integrated Circuit #I2C - Inter Integrated Circuit
The Raspberry Pi's I2C pins are an extremely useful way to talk to many different types of external peripheral; from the MCP23017 digital IO expander, to a connected ATmega. Der I2C-Bus des Raspberry Pi ist sehr praktisch um mit vielen unterschiedlichen Bausteinen
zu kommunizieren - egal ob z.B. ein MCP23017 als digitale I/O-Erweiterung oder sogar ein ATmega.
You can verify the address of connected I2C peripherals with a simple one-liner: Die Adresse einen angeschlossenen I2C-Bausteins kann mit einem einfachen Einzeiler überprüft werden:
```bash ```bash
sudo apt-get install i2c-tools sudo apt-get install i2c-tools
sudo i2cdetect -y 1 sudo i2cdetect -y 1
``` ```
You can access i2c from Python using the smbus library: Den I2C-Bus kann man von Python aus über die smbus-Library ansteuern:
```bash ```bash
sudo apt-get install python-smbus sudo apt-get install python-smbus
``` ```
And then in Python: ...und dann in Python:
```python ```python
import smbus import smbus

View File

@ -3,7 +3,7 @@
name: Piano HAT name: Piano HAT
manufacturer: Pimoroni manufacturer: Pimoroni
url: https://github.com/pimoroni/piano-hat url: https://github.com/pimoroni/piano-hat
description: A tiny Pi piano with 16 touch-sensitive buttons description: Ein kleines Pi Piano mit 16 berührungsempfindlichen Tasten
pincount: 40 pincount: 40
i2c: i2c:
'0x28': '0x28':
@ -34,14 +34,14 @@ pin:
--> -->
#Piano HAT #Piano HAT
Piano HAT has 16 touch-sensitive buttons. 13 of these are a single Piano octave, the rest give you octave up/down and instrument select functionality. Piano HAT hat 16 berührungsempfindliche Tasten. 13 dieser Tasten bilden eine Piano-Oktave, die anderen lassen die die Oktave hoch oder runter schalten und Instrumente auswählen.
It uses two Microchip CAP1188 chips with the i2c addresses 0x28 and 0x2b. Der HAT benutzt zwei Microchip CAP1188 ICs mit den I2C Adressen 0x28 und 0x2b.
You can use the one-line product installer to get Piano HAT set up and ready to go, just: Mit folgendem Einzeiler installierst Du die nötige Software:
```bash ```bash
curl get.pimoroni.com/pianohat | bash curl get.pimoroni.com/pianohat | bash
``` ```
And follow the instructions! Den Rest findest Du in der Anleitung!

View File

@ -3,7 +3,7 @@
name: Pibrella name: Pibrella
manufacturer: Pimoroni Vs Cyntech manufacturer: Pimoroni Vs Cyntech
url: https://github.com/pimoroni/pibrella url: https://github.com/pimoroni/pibrella
description: An all-in-one light, sound, input and output add-on board. description: eine "Alles-in-Einem" Licht, Ton, Ein- und Ausgabe Erweiterungsplatine.
pincount: 26 pincount: 26
pin: pin:
'7': '7':
@ -61,16 +61,17 @@ pin:
--> -->
#Pibrella #Pibrella
The all-in-one light, sound, input and output add-on board from Pimoroni vs Cyntech uses lots of IO on the Pi but leaves both Serial and I2C free leaving plenty of room for expansion if you get creative. Die "Alles-in-Einem" Licht, Ton, Ein- und Ausgabe Erweiterungsplatine von Pimoroni vs Cyntech
benutzt jede Menge I/O Anschlüsse des Pi aber lässt die serielle Schnittstelle und den I2C-Bus noch frei und somit viel Raum für creative Erweiterungen!
Pibrella is easy to use, first you should install the module using LXTerminal/Command Line: Pibrella is einfach zu benutzen - einfach das entsprechende Modul über die Kommandozeile installieren:
```bash ```bash
sudo apt-get install python-pip sudo apt-get install python-pip
sudo pip install pibrella sudo pip install pibrella
``` ```
Then import it into your Python script and start tinkering: ... dann die Library in Dein Python-Skript importieren und anfangen zu basteln:
```bash ```bash
import pibrella import pibrella

View File

@ -5,7 +5,7 @@ manufacturer: Pimoroni
url: https://github.com/pimoroni/piglow url: https://github.com/pimoroni/piglow
github: https://github.com/pimoroni/piglow github: https://github.com/pimoroni/piglow
buy: http://shop.pimoroni.com/products/piglow buy: http://shop.pimoroni.com/products/piglow
description: Simply 18 LEDs in a spiral pattern controllable in Python. description: 18 einfache LEDs als Spirale angeordnet und über Python ansteuerbar.
pincount: 26 pincount: 26
pin: pin:
'1': {} '1': {}

View File

@ -5,7 +5,7 @@ manufacturer: Pimoroni
url: https://github.com/pimoroni/skywriter-hat url: https://github.com/pimoroni/skywriter-hat
github: https://github.com/pimoroni/skywriter-hat github: https://github.com/pimoroni/skywriter-hat
buy: http://shop.pimoroni.com/products/skywriter-hat buy: http://shop.pimoroni.com/products/skywriter-hat
description: A 3D positional and gesture sensor. description: Ein 3D Positions- und Gesten-Sensor.
install: install:
'apt': 'apt':
- 'python-smbus' - 'python-smbus'
@ -28,7 +28,7 @@ pin:
--> -->
#Skywriter HAT #Skywriter HAT
Skywriter HAT senses your finger's position above it in 3 dimensions, outputting an X, Y, Z axis Skywriter HAT spürt die Position Deines Fingers über ihm in drei Dimensionen und gibt die somit die X-, Y- und Z-Koordinaten, welche Du in Deinen Python-Skripten verarbeiten kannst.
which you can use in your Python scripts.
Er erkennt auch Gesten wie z.B. wischen und andere.
It also recognises gestures, including swipes and more.

View File

@ -4,7 +4,7 @@ name: Unicorn HAT
manufacturer: Pimoroni manufacturer: Pimoroni
url: http://shop.pimoroni.com/products/unicorn-hat url: http://shop.pimoroni.com/products/unicorn-hat
buy: http://shop.pimoroni.com/products/unicorn-hat buy: http://shop.pimoroni.com/products/unicorn-hat
description: 64 blindingly bright RGB LEDs on a single HAT description: 64 blendend helle RGB LEDs auf einem HAT
github: https://github.com/pimoroni/unicornhat github: https://github.com/pimoroni/unicornhat
install: install:
'apt': 'apt':
@ -26,19 +26,19 @@ pin:
--> -->
#Unicorn HAT #Unicorn HAT
64 blindingly bright LEDs packed into a HAT and driven with an ultra-fast, C library that you can talk to 64 blendend helle LEDs auf einem HAT, die über eine super schnelle C-Library angesteuert werden.
from Python make Unicorn HAT PiGlow's bigger, brighter brother. Die C-Library lässt sich auch über Python ansteuern. Der Unicorn HAT ist quasi der grössere und hellere Bruder der PiGlow.
Note: Unicorn HAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound Hinweis: der Unicorn HAT trickst ein wenig mit dem PWM-Ausgang - der gleichen Hardware, mit der Dein Pi Sounds über den
through the audio jack ( analog audio ) so you can't use both at the same time! analogen Audio-Ausgang erzeugen kann. Somit kannst Du nicht beides gleichzeitig nutzen!
Setup is easy, just: Die Einrichtung des HATs ist einfach:
```bash ```bash
curl get.pimoroni.com/unicornhat | bash curl get.pimoroni.com/unicornhat | bash
``` ```
Then import it into your Python script and start tinkering: Dann musst Du die Library nur noch in Dein Python-Skript importieren und kannst anfangen zu experimentieren:
```bash ```bash
import unicornhat import unicornhat

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-14.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

1
src/de-DE/pin/pin-17.md Symbolic link
View File

@ -0,0 +1 @@
./pin-1.md

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-20.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-25.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -1,4 +1,2 @@
# HAT EEPROM Anschlüsse ID_SC und ID_SD
Diese Anschlüsse sind für die HAT genannten Erweiterungsplatinen des Pi. Über diese Diese Anschlüsse sind für die HAT genannten Erweiterungsplatinen des Pi. Über diese
wird das EEPROM der Erweiterung per I2C angesprochen. wird das EEPROM der Erweiterung per I2C angesprochen.

View File

@ -1 +0,0 @@
pin-27.md

1
src/de-DE/pin/pin-28.md Symbolic link
View File

@ -0,0 +1 @@
pin-27.md

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-30.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-34.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-39.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -1 +0,0 @@
pin-2.md

1
src/de-DE/pin/pin-4.md Symbolic link
View File

@ -0,0 +1 @@
pin-2.md

View File

@ -1,12 +1 @@
SCL ist der Clock oder Tackt Anschluss des I2C-Bus des Pi. [mehr über I2C](/pinout/i2c). SCL ist der Clock oder Tackt Anschluss des I2C-Bus des Pi. [mehr über I2C](/pinout/i2c).
```python
require 'wiringpi2'
HIGH = 1
LOW = 0
OUTPUT = 1
INPUT = 0
io = WiringPi::GPIO.new
io.pin_mode(9,OUTPUT)
io.digital_write(9,HIGH)
```

View File

@ -1 +0,0 @@
pin-6.md

1
src/de-DE/pin/pin-9.md Symbolic link
View File

@ -0,0 +1 @@
pin-6.md

View File

@ -8,7 +8,7 @@ resource_url: /resources/
domain: de.pinout.xyz domain: de.pinout.xyz
url_suffix: url_suffix:
urls: urls:
GND: ground GND: masse_ground
strings: strings:
- made_by: '* Made by {manufacturer}' - made_by: '* Made by {manufacturer}'
- type_hat: '* HAT form-factor' - type_hat: '* HAT form-factor'

View File

@ -1,3 +1 @@
# Pines ID_SC e ID_SD del HAT EEPROM
Estos pines están generalmente reservados para la comunicación i2c con un HAT EEPROM. Estos pines están generalmente reservados para la comunicación i2c con un HAT EEPROM.

View File

@ -1,12 +1 @@
SCL es uno de los pines i2c en la Pi, [aprende más sobre i2c](/pinout/i2c). SCL es uno de los pines i2c en la Pi, [aprende más sobre i2c](/pinout/i2c).
```python
require 'wiringpi2'
HIGH = 1
LOW = 0
OUTPUT = 1
INPUT = 0
io = WiringPi::GPIO.new
io.pin_mode(9,OUTPUT)
io.digital_write(9,HIGH)
```

View File

@ -1,6 +1,6 @@
#Pinout! #Pinout!
##Le guide complet des broches GPIO de la Raspberry Pi, modèles B+ et Raspberry Pi 2 inclus! ###Le guide complet des broches GPIO de la Raspberry Pi, modèles B+ et Raspberry Pi 2 inclus!
Ce document n'est pas destiné à l'impression, c'est à la fois un outil de référence rapide et un guide complet des broches GPIO de la Raspberry Pi. Ce document n'est pas destiné à l'impression, c'est à la fois un outil de référence rapide et un guide complet des broches GPIO de la Raspberry Pi.

View File

@ -5,7 +5,7 @@ default_title: Assegnazione pin GPIO del Raspberry Pi - Pi 1, B+, Pi 2
title_suffix: " - Assegnazione pin GPIO del Raspberry Pi" title_suffix: " - Assegnazione pin GPIO del Raspberry Pi"
base_url: /pinout/ base_url: /pinout/
resource_url: /resources/ resource_url: /resources/
domain: pinout.xyz domain: it.pinout.xyz
url_suffix: url_suffix:
urls: urls:
GND: ground GND: ground

View File

@ -17,7 +17,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69846516-1', 'auto'); ga('create', 'UA-69846516-6', 'auto');
ga('send', 'pageview'); ga('send', 'pageview');
</script> </script>

View File

@ -1,12 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
import json
import unicodedata import unicodedata
import re import re
import os
import time
import sys import sys
import pinout import pinout
import yaml
import markjaml import markjaml
import glob import glob