Merge remote-tracking branch 'Gadgetoid/master'
This commit is contained in:
commit
7ef37ecdf7
12
README.md
12
README.md
@ -24,13 +24,13 @@ The contents of this GitHub repository are used to build http://pinout.xyz and i
|
||||
|
||||
Current known contributors are:
|
||||
|
||||
* de-DE - @rdmueller and KojoePi
|
||||
* es-ES - @ResonantWave
|
||||
* fr-FR - @RogueM
|
||||
* it-IT - @LizardM4
|
||||
* tr-TR - @Ardakilic
|
||||
* de - @rdmueller and @KojoePi
|
||||
* es - @ResonantWave
|
||||
* fr - @RogueM
|
||||
* it - @LizardM4
|
||||
* tr - @Ardakilic
|
||||
|
||||
You should start by duplicating the `src/en` directory to the
|
||||
If you would like to provide support for a language not yet in the repository you should start by duplicating the `src/en` directory to the
|
||||
appropriate culture. For example if you want to create a German translation you would create the folder `src/de`.
|
||||
|
||||
There are no plans to support cultures, so you can't have `src/fr-CA` ( sorry! ).
|
||||
|
@ -1,6 +1,9 @@
|
||||
#Overlays History
|
||||
This document only logs the changes to the overlay files that are relevant for purposes of translations. See files history for further details!
|
||||
|
||||
Nov 14, 2015
|
||||
- major tweaks to i2c.md and related pins
|
||||
|
||||
Nov 12, 2015
|
||||
- major tweaks to arduino-spi.md
|
||||
|
||||
|
@ -15,7 +15,14 @@ strings:
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: ' Uses {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- more_information: 'More Information'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- buy_now: 'Buy Now'
|
||||
overlays:
|
||||
- ground
|
||||
- spi
|
||||
|
@ -26,7 +26,7 @@ pin:
|
||||
|
||||
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.
|
||||
|
||||
The i2c pins include a fixed 1.8k pull-up resistor to 3.3v. This means they are not suitable for use as general purpose IO where a pull-up is not required.
|
||||
The i2c pins include a fixed 1.8 kohms pull-up resistor to 3.3v. This means they are not suitable for use as general purpose IO where a pull-up is not required.
|
||||
|
||||
You can verify the address of connected I2C peripherals with a simple one-liner:
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
SDA (i2c Data) is one of the i2c pins on the Pi, [learn more about i2c](/pinout/i2c).
|
||||
|
||||
SDA includes a fixed, 1.8k pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
|
||||
SDA includes a fixed, 1.8 kohms pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
|
@ -1,3 +1,3 @@
|
||||
SCL (i2c Clock) is one of the i2c pins on the Pi, [learn more about i2c](/pinout/i2c).
|
||||
|
||||
SCL includes a fixed, 1.8k pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
|
||||
SCL includes a fixed, 1.8 kohms pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
|
@ -15,6 +15,7 @@ strings:
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: ' Uses {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
|
@ -1,25 +1 @@
|
||||
SDA es uno de los pines i2c en la Pi, [aprende más sobre i2c](/pinout/i2c).
|
||||
|
||||
Es fácil escribir un HIGH (encendido) o LOW (apagado) digital a un pin del GPIO, pero debes recordar algunas cosas:
|
||||
|
||||
* Ejecuta tus programas como root
|
||||
* Ajusta el modo de los pines a OUTPUT (1)
|
||||
|
||||
Asumiendo que has instalado WiringPi2-Python ( pip install wiringpi2 ) prueba a pegar lo siguiente en un archivo .py:
|
||||
|
||||
```python
|
||||
import wiringpi2 as wiringpi
|
||||
HIGH = 1
|
||||
LOW = 0
|
||||
OUTPUT = 1
|
||||
INPUT = 0
|
||||
wiringpi.wiringPiSetup()
|
||||
wiringpi.pinMode(8,OUTPUT)
|
||||
wiringpi.digitalWrite(8,HIGH)
|
||||
```
|
||||
|
||||
Ejecútalo con:
|
||||
|
||||
```bash
|
||||
sudo python myscript.py
|
||||
```
|
||||
|
@ -15,7 +15,14 @@ strings:
|
||||
- type_classic: 'formato clásico'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Usa I2C'
|
||||
- uses_spi: 'Usa SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: ' Usa {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- more_information: 'More Information'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- buy_now: 'Buy Now'
|
||||
overlays:
|
||||
- ground
|
||||
- spi
|
||||
|
@ -25,6 +25,8 @@ pin:
|
||||
|
||||
I2C est un moyen très pratique pour communiquer avec de multiples périphériques, un MCP23017 IO expander digital, un microprocesseur ATmega connecté à la Raspberry Pi, etc.
|
||||
|
||||
Les broches i2c de la Raspi incorporent une résistance de tirage fixée à 1.8 kohms qui maintient la ligne à 3.3 volts. En conséquence elles ne peuvent être utilisées en entrées/sorties pour les applications générales ne nécessitant pas de 'pull-up'.
|
||||
|
||||
Pour vérifier la présence d'un périphérique sur le bus i2c, exécutez simplement les commandes suivantes:
|
||||
|
||||
```bash
|
||||
|
@ -1,25 +1,3 @@
|
||||
SDA est la broche fournissant le signal de données du bus i2c de la Raspberry Pi, [référence i2c](/pinout/i2c).
|
||||
|
||||
Conseil: Il est aisé de basculer une broche de l'état haut (HIGH) vers l'état bas (LOW), ou vice versa, mais prenez cependant quelques précautions:
|
||||
|
||||
* Exécutez vos scripts en invoquant l'utilisateur 'root'
|
||||
* n'oubliez pas de déclarer la broche en tant que sortie (OUTPUT, 1)
|
||||
|
||||
Par exemple, sous WiringPi2-Python ( pip install wiringpi2 ):
|
||||
|
||||
```python
|
||||
import wiringpi2 as wiringpi
|
||||
HIGH = 1
|
||||
LOW = 0
|
||||
OUTPUT = 1
|
||||
INPUT = 0
|
||||
wiringpi.wiringPiSetup()
|
||||
wiringpi.pinMode(8,OUTPUT)
|
||||
wiringpi.digitalWrite(8,HIGH)
|
||||
```
|
||||
|
||||
Puis:
|
||||
|
||||
```bash
|
||||
sudo python myscript.py
|
||||
```
|
||||
Important: incorpore une résistance de tirage fixée à 1.8 kohms qui maintient la ligne à 3.3 volts. En conséquence elle ne peut être utilisées en entrée/sortie pour les applications générales ne nécessitant pas de 'pull-up'.
|
||||
|
@ -1,12 +1,3 @@
|
||||
SCL est la broche fournissant le signal d'horloge du bus i2c de la Raspberry Pi, [référence 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)
|
||||
```
|
||||
Important: incorpore une résistance de tirage fixée à 1.8 kohms qui maintient la ligne à 3.3 volts. En conséquence elle ne peut être utilisées en entrée/sortie pour les applications générales ne nécessitant pas de 'pull-up'.
|
||||
|
@ -10,12 +10,19 @@ url_suffix:
|
||||
urls:
|
||||
GND: masse
|
||||
strings:
|
||||
- made_by: 'Produit {manufacturer}'
|
||||
- made_by: 'produit {manufacturer}'
|
||||
- type_hat: 'format HAT'
|
||||
- type_classic: 'format Classic'
|
||||
- pin_header: '{} broches'
|
||||
- uses_i2c: 'bus I2C'
|
||||
- wiring_pi_pin: 'Broche Wiring Pi {}'
|
||||
- uses_spi: 'bus SPI'
|
||||
- wiring_pi_pin: 'broche Wiring Pi {}'
|
||||
- uses_n_gpio_pins: ' {} broches GPIO actives'
|
||||
- bcm_pin_rev1_pi: 'broche BCM {} sur Raspi Rev 1'
|
||||
- physical_pin_n: 'broche physique {}'
|
||||
- more_information: 'informations supplémentaires'
|
||||
- github_repository: 'lien GitHub'
|
||||
- buy_now: 'achat'
|
||||
overlays:
|
||||
- ground
|
||||
- spi
|
||||
|
@ -1,6 +1 @@
|
||||
SDA è uno dei pin i2c del Raspberry, [maggiori informazioni su i2c](/pinout/i2c).
|
||||
|
||||
È facile muovere i primi passi scrivendo un HIGH o LOW digitale su un pin GPIO, ma devi ricordarti un paio di cose:
|
||||
|
||||
* Lancia il tuo script come root
|
||||
* Imposta la modalità del tuo pin ad OUTPUT (1)
|
||||
|
@ -15,7 +15,14 @@ strings:
|
||||
- type_classic: 'Fattore di forma classico'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Utilizza I2C'
|
||||
- uses_spi: 'Utilizza SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: ' Utilizza {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- more_information: 'More Information'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- buy_now: 'Buy Now'
|
||||
overlays:
|
||||
- ground
|
||||
- spi
|
||||
|
@ -1,25 +1 @@
|
||||
SDA, Raspberry Pi'deki I2C pinlerinden biri. [I2c hakkında detaylı bilgi](/pinout/i2c).
|
||||
|
||||
GPIO pinleri ile dijital HIGH ve LOW değerlerini okumak ve hazırlamak oldukça kolay, yalnız bazı hususlara dikkat etmeniz gerekmekte:
|
||||
|
||||
* Kodu çalıştıracak script'inizi root (süper yönetici) hakları ile çalıştırmalısınız.
|
||||
* Pin'in modunu OUTPUT (1) olarak tanımlamalısınız.
|
||||
|
||||
Eğer WiringPi2-Pytgon kütüphanesini kurduysanız ( pip install wiringpi2 ) o zaman aşağıdaki kodu bir .py dosyası olarak kaydedip çalıştırabilirsiniz:
|
||||
|
||||
```python
|
||||
import wiringpi2 as wiringpi
|
||||
HIGH = 1
|
||||
LOW = 0
|
||||
OUTPUT = 1
|
||||
INPUT = 0
|
||||
wiringpi.wiringPiSetup()
|
||||
wiringpi.pinMode(8,OUTPUT)
|
||||
wiringpi.digitalWrite(8,HIGH)
|
||||
```
|
||||
|
||||
Ardından şu komutla çalıştırabilirsiniz:
|
||||
|
||||
```bash
|
||||
sudo python scriptadi.py
|
||||
```
|
@ -14,7 +14,14 @@ strings:
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: ' Uses {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- more_information: 'More Information'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- buy_now: 'Buy Now'
|
||||
overlays:
|
||||
- ground
|
||||
- spi
|
||||
|
Loading…
Reference in New Issue
Block a user