Merge remote-tracking branch 'Gadgetoid/master'
This commit is contained in:
commit
342ceb7e19
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ all:
|
||||
cp -r resources output/$(LANG)/
|
||||
|
||||
clean:
|
||||
rm -r output/$(LANG)/*
|
||||
rm -rf output/$(LANG)/*
|
||||
|
||||
serve: all
|
||||
./serve.py $(LANG)
|
||||
|
@ -1,13 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
import json
|
||||
import markdown
|
||||
import unicodedata
|
||||
import re
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
import pinout
|
||||
import yaml
|
||||
import markjaml
|
||||
import urlmapper
|
||||
|
||||
@ -300,7 +297,7 @@ def get_hreflang_urls(src):
|
||||
for lang in alternate_urls:
|
||||
if src in alternate_urls[lang]:
|
||||
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,
|
||||
url=url
|
||||
))
|
||||
|
@ -3,11 +3,8 @@ import json
|
||||
import markdown
|
||||
import unicodedata
|
||||
import re
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
import pinout
|
||||
import yaml
|
||||
import markjaml
|
||||
|
||||
reload(sys)
|
||||
|
@ -1,7 +1,6 @@
|
||||
import json
|
||||
import yaml
|
||||
import time
|
||||
import markdown
|
||||
|
||||
DB_FILE = 'pi-pinout.yaml'
|
||||
SETTINGS_FILE = 'settings.yaml'
|
||||
|
2
serve.py
2
serve.py
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
from flask import Flask, redirect, send_from_directory
|
||||
from flask import Flask, send_from_directory
|
||||
import sys
|
||||
app = Flask(__name__)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
name: Display-o-Tron HAT
|
||||
manufacturer: Pimoroni
|
||||
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
|
||||
pin:
|
||||
3:
|
||||
@ -32,13 +32,13 @@ pin:
|
||||
-->
|
||||
#Display-o-Tron HAT
|
||||
|
||||
Display-o-Tron HAT uses both SPI and I2c to drive the LCD display, backlight and touch.
|
||||
However both of these busses can be shared with other devices.
|
||||
Der Display-o-Tron HAT benutzt den SPI- und I2C-Bus um das LC-Display, die Hintergrundbeleuchtung und die Tasten zu steuern bzw. abzufragen.
|
||||
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
|
||||
curl get.pimoroni.com/dot3k | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
...den Rest findest Du in der Anleitung auf Github :-)
|
||||
|
@ -4,7 +4,7 @@ name: Display-o-Tron 3000
|
||||
manufacturer: Pimoroni
|
||||
github: 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:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
@ -24,25 +24,25 @@ pin:
|
||||
5:
|
||||
mode: i2c
|
||||
7:
|
||||
name: Joystick Button
|
||||
name: Joystick Taste
|
||||
mode: input
|
||||
active: low
|
||||
11:
|
||||
name: Joystick Left
|
||||
name: Joystick links
|
||||
mode: input
|
||||
active: low
|
||||
13:
|
||||
name: Joystick Up
|
||||
name: Joystick oben
|
||||
mode: input
|
||||
active: low
|
||||
15:
|
||||
name: Joystick Right
|
||||
name: Joystick rechts
|
||||
mode: input
|
||||
active: low
|
||||
19:
|
||||
mode: spi
|
||||
21:
|
||||
name: Joystick Down
|
||||
name: Joystick unten
|
||||
mode: input
|
||||
active: low
|
||||
22:
|
||||
@ -54,10 +54,10 @@ pin:
|
||||
-->
|
||||
#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
|
||||
curl get.pimoroni.com/dot3k | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
...den Rest findest Du in der Anleitung auf Github :-)
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!--
|
||||
---
|
||||
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/
|
||||
github: https://github.com/raspberrypilearning/dots
|
||||
pin:
|
||||
bcm0:
|
||||
name: 'Color: Blue'
|
||||
name: 'Farbe: Blau'
|
||||
direction: input
|
||||
bcm1:
|
||||
name: Dot 7
|
||||
@ -36,7 +36,7 @@ pin:
|
||||
name: Dot 17
|
||||
direction: input
|
||||
bcm10:
|
||||
name: 'Color: Green'
|
||||
name: 'Farbe: Grün'
|
||||
direction: input
|
||||
bcm11:
|
||||
name: Dot 8
|
||||
@ -63,7 +63,7 @@ pin:
|
||||
name: Dot 20
|
||||
direction: input
|
||||
bcm19:
|
||||
name: 'Color: Orange'
|
||||
name: 'Farbe: Orange'
|
||||
direction: input
|
||||
bcm20:
|
||||
name: Bear
|
||||
@ -87,16 +87,18 @@ pin:
|
||||
name: Dot 11
|
||||
direction: input
|
||||
bcm27:
|
||||
name: 'Color: Red'
|
||||
name: 'Farbe: Rot'
|
||||
direction: input
|
||||
-->
|
||||
#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
|
||||
import RPi.GPIO as GPIO
|
||||
@ -105,8 +107,8 @@ GPIO.setup(dot_pin, GPIO.IN, GPIO.PUD_UP)
|
||||
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
|
||||
this is recommended for reading:
|
||||
Es ist gute Praxis den Eingang nur auf PULLUP zu schalten, wenn Du den Kontakt auch lesen möchtest.
|
||||
Somit ist folgender Code empfohlen:
|
||||
|
||||
```python
|
||||
def is_dot_connected(dot_pin):
|
||||
|
@ -108,7 +108,7 @@ sudo apt-get install python-pip
|
||||
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
|
||||
import explorerhat
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
---
|
||||
name: I2C
|
||||
description: Raspberry Pi i2c pins
|
||||
description: Raspberry Pi I2C Anschlüsse
|
||||
pin:
|
||||
'3':
|
||||
name: Data
|
||||
@ -23,22 +23,23 @@ pin:
|
||||
-->
|
||||
#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
|
||||
sudo apt-get install i2c-tools
|
||||
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
|
||||
sudo apt-get install python-smbus
|
||||
```
|
||||
|
||||
And then in Python:
|
||||
...und dann in Python:
|
||||
|
||||
```python
|
||||
import smbus
|
||||
|
@ -3,7 +3,7 @@
|
||||
name: Piano HAT
|
||||
manufacturer: Pimoroni
|
||||
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
|
||||
i2c:
|
||||
'0x28':
|
||||
@ -34,14 +34,14 @@ pin:
|
||||
-->
|
||||
#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
|
||||
curl get.pimoroni.com/pianohat | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
Den Rest findest Du in der Anleitung!
|
||||
|
@ -3,7 +3,7 @@
|
||||
name: Pibrella
|
||||
manufacturer: Pimoroni Vs Cyntech
|
||||
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
|
||||
pin:
|
||||
'7':
|
||||
@ -61,16 +61,17 @@ pin:
|
||||
-->
|
||||
#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
|
||||
sudo apt-get install python-pip
|
||||
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
|
||||
import pibrella
|
||||
|
@ -5,7 +5,7 @@ manufacturer: Pimoroni
|
||||
url: https://github.com/pimoroni/piglow
|
||||
github: https://github.com/pimoroni/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
|
||||
pin:
|
||||
'1': {}
|
||||
|
@ -5,7 +5,7 @@ manufacturer: Pimoroni
|
||||
url: https://github.com/pimoroni/skywriter-hat
|
||||
github: https://github.com/pimoroni/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:
|
||||
'apt':
|
||||
- 'python-smbus'
|
||||
@ -28,7 +28,7 @@ pin:
|
||||
-->
|
||||
#Skywriter HAT
|
||||
|
||||
Skywriter HAT senses your finger's position above it in 3 dimensions, outputting an X, Y, Z axis
|
||||
which you can use in your Python scripts.
|
||||
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.
|
||||
|
||||
Er erkennt auch Gesten wie z.B. wischen und andere.
|
||||
|
||||
It also recognises gestures, including swipes and more.
|
||||
|
@ -4,7 +4,7 @@ name: Unicorn HAT
|
||||
manufacturer: Pimoroni
|
||||
url: 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
|
||||
install:
|
||||
'apt':
|
||||
@ -26,19 +26,19 @@ pin:
|
||||
-->
|
||||
#Unicorn HAT
|
||||
|
||||
64 blindingly bright LEDs packed into a HAT and driven with an ultra-fast, C library that you can talk to
|
||||
from Python make Unicorn HAT PiGlow's bigger, brighter brother.
|
||||
64 blendend helle LEDs auf einem HAT, die über eine super schnelle C-Library angesteuert werden.
|
||||
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
|
||||
through the audio jack ( analog audio ) so you can't use both at the same time!
|
||||
Hinweis: der Unicorn HAT trickst ein wenig mit dem PWM-Ausgang - der gleichen Hardware, mit der Dein Pi Sounds über den
|
||||
analogen Audio-Ausgang erzeugen kann. Somit kannst Du nicht beides gleichzeitig nutzen!
|
||||
|
||||
Setup is easy, just:
|
||||
Die Einrichtung des HATs ist einfach:
|
||||
|
||||
```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
|
||||
import unicornhat
|
||||
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-14.md
Symbolic link
1
src/de-DE/pin/pin-14.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-17.md
Symbolic link
1
src/de-DE/pin/pin-17.md
Symbolic link
@ -0,0 +1 @@
|
||||
./pin-1.md
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-20.md
Symbolic link
1
src/de-DE/pin/pin-20.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-25.md
Symbolic link
1
src/de-DE/pin/pin-25.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -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
|
||||
wird das EEPROM der Erweiterung per I2C angesprochen.
|
||||
|
@ -1 +0,0 @@
|
||||
pin-27.md
|
1
src/de-DE/pin/pin-28.md
Symbolic link
1
src/de-DE/pin/pin-28.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-27.md
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-30.md
Symbolic link
1
src/de-DE/pin/pin-30.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-34.md
Symbolic link
1
src/de-DE/pin/pin-34.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-39.md
Symbolic link
1
src/de-DE/pin/pin-39.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -1 +0,0 @@
|
||||
pin-2.md
|
1
src/de-DE/pin/pin-4.md
Symbolic link
1
src/de-DE/pin/pin-4.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-2.md
|
@ -1,12 +1 @@
|
||||
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)
|
||||
```
|
@ -1 +0,0 @@
|
||||
pin-6.md
|
1
src/de-DE/pin/pin-9.md
Symbolic link
1
src/de-DE/pin/pin-9.md
Symbolic link
@ -0,0 +1 @@
|
||||
pin-6.md
|
@ -8,7 +8,7 @@ resource_url: /resources/
|
||||
domain: de.pinout.xyz
|
||||
url_suffix:
|
||||
urls:
|
||||
GND: ground
|
||||
GND: masse_ground
|
||||
strings:
|
||||
- made_by: '* Made by {manufacturer}'
|
||||
- type_hat: '* HAT form-factor'
|
||||
|
@ -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.
|
||||
|
@ -1,12 +1 @@
|
||||
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)
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
#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.
|
||||
|
||||
|
@ -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"
|
||||
base_url: /pinout/
|
||||
resource_url: /resources/
|
||||
domain: pinout.xyz
|
||||
domain: it.pinout.xyz
|
||||
url_suffix:
|
||||
urls:
|
||||
GND: ground
|
||||
|
@ -17,7 +17,7 @@
|
||||
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');
|
||||
|
||||
ga('create', 'UA-69846516-1', 'auto');
|
||||
ga('create', 'UA-69846516-6', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
@ -1,12 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
import json
|
||||
import unicodedata
|
||||
import re
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
import pinout
|
||||
import yaml
|
||||
import markjaml
|
||||
import glob
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user