Changed from WiringPi2 to WiringPi for #302

This commit is contained in:
Phil Howard 2019-01-26 21:14:56 +00:00
parent ba3e20363c
commit 55ff624831
14 changed files with 37 additions and 37 deletions

View File

@ -26,11 +26,11 @@ Verbinde beide und die wirst magischen blauen Rauch aufsteigen sehen...
Persönlich baue nehme ich gerne einen ATmega 328 mit einem 3,3Volt Spannungsregulierer, der die 5 Volt Spannungsversorgung auf 3,3 Volt für den ATmega 328
runter reguliert. Der ATmega 328 läuft ganz gut mit 3,3 Volt und einem 15Mhz Quarz und so bekommt man einen Arduino-Klone mir 3,3 Volt Logik.
Wenn Du die WiringPi2-Python-Bibliothek installiert hast, dass öffnet das folgende Beispiel die serielle Schnittstelle mit
Wenn Du die WiringPi-Python-Bibliothek installiert hast, dass öffnet das folgende Beispiel die serielle Schnittstelle mit
einer Übertragungsgeschwindigkeit von 9600baud und gibt 'hello world' aus:
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'hello world!')

View File

@ -5,7 +5,7 @@ class: interface
type: pinout
page_url: wiringpi
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pin:
'3':
name: WiringPi 8
@ -70,9 +70,9 @@ pin:
Das Ziel dieser Bibliothek ist es, eine einzige gemeinsame Plattform und Programmierschnistelle für den Zugriff auf die
GPIOs des Rapsberry Pi für verschiedene Programmiersprachen zur Verfügung zu stellen.
Im Kern ist WiringPi eine C-Bibliothek, aber sie steht auch in Ruby und Python per "gem install wiringpi" bzw. "pip install wiringpi2" zur Verfügung.
Im Kern ist WiringPi eine C-Bibliothek, aber sie steht auch in Ruby und Python per "gem install wiringpi" bzw. "pip install WiringPi" zur Verfügung.
Bei Python muss man auf die "2" am Ende achten - das ist die WiringPi2-Python Bibliothek, die momentan die aktuelle Version ist.
Bei Python muss man auf die "2" am Ende achten - das ist die WiringPi-Python Bibliothek, die momentan die aktuelle Version ist.
Mehr Informationen findest Du auf der offiziellen WiringPi-Webseite.

View File

@ -29,10 +29,10 @@ UART is commonly used on the Pi as a convenient way to control it over the GPIO,
It can also be used as a way to interface an Arduino, bootloaded ATmega, ESP8266, etc with your Pi. Be careful with logic-levels between the devices though, for example the Pi is 3.3v and the Arduino is 5v. Connect the two and you might conjure up some magic blue smoke.
Assuming you have WiringPi2-Python installed, the following python example opens the Pi's UART at 9600baud and puts 'hello world'
Assuming you have WiringPi-Python installed, the following python example opens the Pi's UART at 9600baud and puts 'hello world'
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'hello world!')

View File

@ -4,7 +4,7 @@ name: WiringPi
class: interface
type: pinout
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pincount: 40
pin:
'3':
@ -68,16 +68,16 @@ pin:
WiringPi is an attempt to bring Arduino-wiring-like simplicity to the Raspberry Pi.
The goal is to have a single common platform and set of functions for accessing the Raspberry Pi GPIO across multiple languages. WiringPi is a C library at heart, but it's available to both Ruby and Python users who can "gem install wiringpi" or "pip install wiringpi2" respectively.
The goal is to have a single common platform and set of functions for accessing the Raspberry Pi GPIO across multiple languages. WiringPi is a C library at heart, but it's available to both Ruby and Python users who can "gem install wiringpi" or "pip install WiringPi" respectively.
Python users note the 2 on the end, the WiringPi2-Python library finally brings a whole host of existing WiringPi functionality to Python including brand new features from WiringPi 2.
Python users note the 2 on the end, the WiringPi-Python library finally brings a whole host of existing WiringPi functionality to Python including brand new features from WiringPi 2.
WiringPi uses its own pin numbering scheme, here you'll learn how WiringPi numbers your GPIO pins, what those pins do and how to do shiny things with them from within Python or Ruby.
Installing to Python couldn't be easier, just:
```bash
sudo pip install wiringpi2
sudo pip install WiringPi
```
For more information about WiringPi you should visit the official WiringPi website.

View File

@ -23,10 +23,10 @@ El UART es una útil y directa manera de comunicar un Arduino ( o un ATmega con
Personalmente prefiero colocar en una placa de pruebas un ATmega 328 con el bootloader de Arduino, con un regulador de voltaje que tome de entrada la línea de 5v de la Pi y que saque 3.3v. El ATmega 328 parece bastante feliz a 3.3v y usando un cristal de 16Mhz, y además tendrás un clon de un Arduino con lógica de 3.3v.
Asumiendo que tengas WiringPi2-Python instalado, el siguiente ejemplo de Python utiliza el UART de la Pi a 9600 baudios y manda 'hello world'
Asumiendo que tengas WiringPi-Python instalado, el siguiente ejemplo de Python utiliza el UART de la Pi a 9600 baudios y manda 'hello world'
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'hello world!')

View File

@ -5,7 +5,7 @@ class: interface
type: pinout
page_url: wiringpi
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pin:
'3':
name: WiringPi 8
@ -68,9 +68,9 @@ pin:
###WiringPi es un intento de traer la simplicidad de Arduino a la Raspberry Pi
El objetivo es tener una única plataforma común y set de funciones para acceder a los GPIO's de la Rasberry Pi en distintos lenguajes. WiringPi es una librería hecha en C, pero está disponible tanto para usuarios de Ruby como de Python, que pueden ejecutar "gem install wiringpi" o "pip install wiringpi2" respectivamente.
El objetivo es tener una única plataforma común y set de funciones para acceder a los GPIO's de la Rasberry Pi en distintos lenguajes. WiringPi es una librería hecha en C, pero está disponible tanto para usuarios de Ruby como de Python, que pueden ejecutar "gem install wiringpi" o "pip install WiringPi" respectivamente.
Los usuarios de Python deben tener cuidado con el 2 al final; la librería WiringPi2-Python finalmente proporciona un montón de funcionalidades existentes a Python, y también incluyendo algunas completamente nuevas.
Los usuarios de Python deben tener cuidado con el 2 al final; la librería WiringPi-Python finalmente proporciona un montón de funcionalidades existentes a Python, y también incluyendo algunas completamente nuevas.
##Empezando con WiringPi
@ -79,7 +79,7 @@ WiringPi utiliza su propio sistema de numeración de pines, aquí aprenderás co
Instalar WiringPi en Python no puede ser más fácil, solo:
```bash
sudo pip install wiringpi2
sudo pip install WiringPi
```
Para más información sobre WiringPi deberías visitar la página oficial de WiringPi.

View File

@ -5,7 +5,7 @@ class: interface
type: pinout
page_url: wiringpi
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pin:
'3':
name: WiringPi 8
@ -70,7 +70,7 @@ pin:
Le but avoué est de définir une librairie unique ainsi qu'un set de fonctions permettant l'accès au GPIO de la Raspberry Pi à partir de plusieurs languages de programmation.
En effet, bien que WiringPi soit une bibliothèque en C au départ, elle est aussi disponible en Ruby et Python. Pour l'installer, un simple "gem install wiringpi" ou "pip install wiringpi2" fera l'affaire, pour l'environnement Ruby et Python respectivement.
En effet, bien que WiringPi soit une bibliothèque en C au départ, elle est aussi disponible en Ruby et Python. Pour l'installer, un simple "gem install wiringpi" ou "pip install WiringPi" fera l'affaire, pour l'environnement Ruby et Python respectivement.
Pour les usagers Python, noter bien le '2' suivant le 'wiringpi', cette nouvelle version est basée sur WiringPi 2 et incorpore la majorité des fonctionnalités de la version C.
@ -81,7 +81,7 @@ WiringPi présente son propre système de numérotation des broches GPIO, visibl
Installez la librairie sous Python est particulièrement simple:
```bash
sudo pip install wiringpi2
sudo pip install WiringPi
```
Pour toute information supplémentaire, visitez le site officiel de WiringPi!

View File

@ -29,10 +29,10 @@ UART is commonly used on the Pi as a convenient way to control it over the GPIO,
It can also be used as a way to interface an Arduino, bootloaded ATmega, ESP8266, etc with your Pi. Be careful with logic-levels between the devices though, for example the Pi is 3.3v and the Arduino is 5v. Connect the two and you might conjure up some magic blue smoke.
Assuming you have WiringPi2-Python installed, the following python example opens the Pi's UART at 9600baud and puts 'hello world'
Assuming you have WiringPi-Python installed, the following python example opens the Pi's UART at 9600baud and puts 'hello world'
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'hello world!')

View File

@ -27,10 +27,10 @@ Personalmente preferisco costruire un circuito con un Arduino Bootloaded ATmega
per prendere la linea a 5V del Raspberry e convertirla in 3.3V. L'ATmega 328 sembra piuttosto soddisfatto di funzionare a 3.3V con un
cristallo a 16Mhz, e così ottieni un clone di Arduino con una logica a 3.3V.
Se hai WiringPi2-Python installato, questo esempio in python apre l'UART del Raspberry a 9600baud e ci scrive 'ciao mondo!'
Se hai WiringPi-Python installato, questo esempio in python apre l'UART del Raspberry a 9600baud e ci scrive 'ciao mondo!'
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'ciao mondo!')

View File

@ -5,7 +5,7 @@ class: interface
type: pinout
page_url: wiringpi
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pin:
'3':
name: WiringPi 8
@ -70,9 +70,9 @@ pin:
L'idea è di avere un'unica piattaforma comune e un insieme di funzioni per accedere alle porte GPIO da diversi linguaggi.
WiringPi ha il cuore in una libreria C, ma è disponibile sia per Ruby che per Python; gli utenti possono installarla usando
rispettivamente "gem install wiringpi" e "pip install wiringpi2".
rispettivamente "gem install wiringpi" e "pip install WiringPi".
Gli utenti Python noteranno il 2 alla fine del pacchetto; la libreria WiringPi2-Python finalmente porta tutta una serie di
Gli utenti Python noteranno il 2 alla fine del pacchetto; la libreria WiringPi-Python finalmente porta tutta una serie di
funzionalità preesistenti di WiringPi a Python, incluse le ultime presenti in WiringPi 2.
##Primi passi con WiringPi
@ -83,7 +83,7 @@ come realizzare progetti interessanti con Python o Ruby.
Installarla in Python non potrebbe essere più semplice. Semplicemente:
```bash
sudo pip install wiringpi2
sudo pip install WiringPi
```
Per maggiori informazioni su WiringPi, dai un'occhiata al loro sito ufficiale.

View File

@ -49,10 +49,10 @@ pin:
###four-wire serial bus olarak da bilinen SPI, bir pin setinden birden fazla adresteki birden fazla uygun cihazı [papatya zinciri](https://tr.wikipedia.org/wiki/Papatya_zinciri) yapıp yönetmenizi sağlar.
Buna örnek olarak MCP23S17 digital IO expander çipini verebiliriz. 0 yerine S'in bulunduğu versiyon I2C versiyonudur. WiringPi2 ile çok kolay bir şekilde kullanlabilir:
Buna örnek olarak MCP23S17 digital IO expander çipini verebiliriz. 0 yerine S'in bulunduğu versiyon I2C versiyonudur. WiringPi ile çok kolay bir şekilde kullanlabilir:
```python
import wiringpi2 as wiringpi
import wiringpi
HIGH = 1
OUTPUT = 1
PIN_BASE = 65

View File

@ -23,10 +23,10 @@ UART Arduino, veya bootload edilmiş bir ATmega ile kolayca iletişim kurmanız
Örneğin Arduino bootload edilmiş ATmega 328 devresini breadboard'a kurup bir akım regülatörü ile Raspberry Pi'nin 5v yolunu 3.3 v'a dönüştürebilirsiniz. Bu sayede 3.3v logic'ine sahip bir Arduino klonunuz olacak.
WiringPi2-Python modülünü yükledikten sonra, Aşağıdaki Python örneği ile Raspberry Pi'nin UART'ını 9600baud'da açabilir ve 'merhaba dunya' yazabilirsiniz.
WiringPi-Python modülünü yükledikten sonra, Aşağıdaki Python örneği ile Raspberry Pi'nin UART'ını 9600baud'da açabilir ve 'merhaba dunya' yazabilirsiniz.
```python
import wiringpi2 as wiringpi
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'merhaba dunya')

View File

@ -5,7 +5,7 @@ class: interface
type: pinout
page_url: wiringpi
url: http://wiringpi.com
github: https://github.com/WiringPi/WiringPi2-Python
github: https://github.com/WiringPi/WiringPi-Python
pin:
'3':
name: WiringPi 8
@ -68,9 +68,9 @@ pin:
###WiringPi, Arduino benzeri bir kablolama basitliğini Raspberry Pi'ye getirmeyi amaçlayan bir projedir.
WiringPi, Arduino kullanmış olanların hiç yabancılık çekmeyeceği, Arduino benzeri bir pinleme/klablolama sistemini Raspberry Pi'ye getirmeyi amaçlamış üçüncü parti bir kütüphanedir. Bu kütüphanenin amacı benzer ve ortak bir platform oluşturmak, ve de Raspberry Pi GPIO pinlerini farklı diller ile yönetebilmektir. WiringPi özünde C dili ile yazılmıştır, fakat hem Ruby hem de Python türevleri mevcuttur. Bunları sıra ile Ruby için "gem install wiringpi" veya Python için "pip install wiringpi2" diyerek kurabilirsiniz.
WiringPi, Arduino kullanmış olanların hiç yabancılık çekmeyeceği, Arduino benzeri bir pinleme/klablolama sistemini Raspberry Pi'ye getirmeyi amaçlamış üçüncü parti bir kütüphanedir. Bu kütüphanenin amacı benzer ve ortak bir platform oluşturmak, ve de Raspberry Pi GPIO pinlerini farklı diller ile yönetebilmektir. WiringPi özünde C dili ile yazılmıştır, fakat hem Ruby hem de Python türevleri mevcuttur. Bunları sıra ile Ruby için "gem install wiringpi" veya Python için "pip install WiringPi" diyerek kurabilirsiniz.
Python kullanıcıları kütüphanenin adının sonundaki 2'ye dikkat etmiş olabilirler. Bu aslında WiringPi2-Python kütüphanesidir. Bu kütüphane sonunda mevcut WiringPi kütüğhanesindeki özellikleri ve esnekliği Raspberry Pi'ye Python dilinde getirmeyi başarmış bir kütüphanedir.
Python kullanıcıları kütüphanenin adının sonundaki 2'ye dikkat etmiş olabilirler. Bu aslında WiringPi-Python kütüphanesidir. Bu kütüphane sonunda mevcut WiringPi kütüğhanesindeki özellikleri ve esnekliği Raspberry Pi'ye Python dilinde getirmeyi başarmış bir kütüphanedir.
##WiringPi'ye başlangıç
@ -79,7 +79,7 @@ WiringPi [kendi pin numaralama şematiğini kullanıyor](http://wiringpi.com/pin
Python'a kurmak saniyelerinizi alacak:
```bash
sudo pip install wiringpi2
sudo pip install WiringPi
```
Daha fazla bilgi için WiringPi resmi web sitesi ni ziyaret edebilirsiniz.

View File

@ -1,7 +1,7 @@
SCL Raspberry Pi'deki I2C pinlerinden biri. [I2c hakkında detaylı bilgi](/pinout/i2c).
```python
require 'wiringpi2'
require 'WiringPi'
HIGH = 1
LOW = 0
OUTPUT = 1