IT: translated all remaining overlays.
This commit is contained in:
parent
0364e1b6f7
commit
fa228d5060
|
@ -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: Un LCD da 3 righe di caratteri, RGB retroilluminato a 6 zone con 6 bottoni touch
|
||||
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.
|
||||
Il Display-o-Tron HAT usa sia l'SPI che l'I2c per controllare il display LCD, la retroilluminazione e il touchscreen.
|
||||
Entrambi questi bus possono essere comunque condivisi con altre periferiche.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare l'HAT puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/dot3k | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
…e seguire le istruzioni!
|
||||
|
|
|
@ -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: Un LCD da 3 righe di caratteri, RGB retroilluminato e un joystick
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
|
@ -24,25 +24,25 @@ pin:
|
|||
5:
|
||||
mode: i2c
|
||||
7:
|
||||
name: Joystick Button
|
||||
name: Bottone joystick
|
||||
mode: input
|
||||
active: low
|
||||
11:
|
||||
name: Joystick Left
|
||||
name: Joystick sinistra
|
||||
mode: input
|
||||
active: low
|
||||
13:
|
||||
name: Joystick Up
|
||||
name: Joystick su
|
||||
mode: input
|
||||
active: low
|
||||
15:
|
||||
name: Joystick Right
|
||||
name: Joystick destra
|
||||
mode: input
|
||||
active: low
|
||||
19:
|
||||
mode: spi
|
||||
21:
|
||||
name: Joystick Down
|
||||
name: Joystick giù
|
||||
mode: input
|
||||
active: low
|
||||
22:
|
||||
|
@ -54,12 +54,12 @@ pin:
|
|||
-->
|
||||
#Display-o-Tron 3000
|
||||
|
||||
The Display-o-Tron 3000 is a 3-line character LCD with an RGB backlight and joystick
|
||||
Il Display-o-Tron 3000 è un LCD da 3 righe di caratteri retroilluminato RGB e con un joystick.
|
||||
|
||||
To get the module set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare il modulo puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/dot3k | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
…e seguire le istruzioni!
|
||||
|
|
|
@ -1,102 +1,102 @@
|
|||
<!--
|
||||
---
|
||||
name: Raspberry Pi Dots
|
||||
description: Join the dots to make a circuit
|
||||
description: Unisci i puntini e crea un circuito
|
||||
url: http://www.raspberrypi.org/dots/
|
||||
github: https://github.com/raspberrypilearning/dots
|
||||
pin:
|
||||
bcm0:
|
||||
name: 'Color: Blue'
|
||||
name: 'Colore: Blu'
|
||||
direction: input
|
||||
bcm1:
|
||||
name: Dot 7
|
||||
name: Puntino 7
|
||||
direction: input
|
||||
bcm2:
|
||||
name: Dot 22
|
||||
name: Puntino 22
|
||||
direction: input
|
||||
bcm3:
|
||||
name: Dot 21
|
||||
name: Puntino 21
|
||||
direction: input
|
||||
bcm4:
|
||||
name: Dot 2
|
||||
name: Puntino 2
|
||||
direction: input
|
||||
bcm5:
|
||||
name: Dot 9
|
||||
name: Puntino 9
|
||||
direction: input
|
||||
bcm6:
|
||||
name: Dot 14
|
||||
name: Puntino 14
|
||||
direction: input
|
||||
bcm7:
|
||||
name: Dot 6
|
||||
name: Puntino 6
|
||||
direction: input
|
||||
bcm8:
|
||||
name: Dot 18
|
||||
name: Puntino 18
|
||||
direction: input
|
||||
bcm9:
|
||||
name: Dot 17
|
||||
name: Puntino 17
|
||||
direction: input
|
||||
bcm10:
|
||||
name: 'Color: Green'
|
||||
name: 'Colore: Verde'
|
||||
direction: input
|
||||
bcm11:
|
||||
name: Dot 8
|
||||
name: Puntino 8
|
||||
direction: input
|
||||
bcm12:
|
||||
name: Dot 10
|
||||
name: Puntino 10
|
||||
direction: input
|
||||
bcm13:
|
||||
name: Cloud
|
||||
direction: input
|
||||
bcm14:
|
||||
name: Dot 1
|
||||
name: Puntino 1
|
||||
direction: input
|
||||
bcm15:
|
||||
name: Dot 3
|
||||
name: Puntino 3
|
||||
direction: input
|
||||
bcm16:
|
||||
name: Dot 13
|
||||
name: Puntino 13
|
||||
direction: input
|
||||
bcm17:
|
||||
name: Dot 4
|
||||
name: Puntino 4
|
||||
direction: input
|
||||
bcm18:
|
||||
name: Dot 20
|
||||
name: Puntino 20
|
||||
direction: input
|
||||
bcm19:
|
||||
name: 'Color: Orange'
|
||||
name: 'Colore: Arancione'
|
||||
direction: input
|
||||
bcm20:
|
||||
name: Bear
|
||||
direction: input
|
||||
bcm21:
|
||||
name: Dot 12
|
||||
name: Puntino 12
|
||||
direction: input
|
||||
bcm22:
|
||||
name: Dot 15
|
||||
name: Puntino 15
|
||||
direction: input
|
||||
bcm23:
|
||||
name: Dot 16
|
||||
name: Puntino 16
|
||||
direction: input
|
||||
bcm24:
|
||||
name: Dot 19
|
||||
name: Puntino 19
|
||||
direction: input
|
||||
bcm25:
|
||||
name: Dot 5
|
||||
name: Puntino 5
|
||||
direction: input
|
||||
bcm26:
|
||||
name: Dot 11
|
||||
name: Puntino 11
|
||||
direction: input
|
||||
bcm27:
|
||||
name: 'Color: Red'
|
||||
name: 'Colore: Rosso'
|
||||
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 è una scheda HAT punto-a-punto per ill Raspberry Pi che ti permette di chiudere il circuito con la vernice conduttiva BARE!
|
||||
|
||||
Every Dot on the Dots board is a "floating" metal contact just waiting to be pulled down to ground with a dab of paint.
|
||||
Ogni puntino ("Dot") sulla scheda Dots è un contatto metallico "mobile", in attesa di essere collegato con una pennellata di vernice.
|
||||
|
||||
To read a Dot you should set its corresponding pin as an INPUT and make sure it's pulled up like so:
|
||||
Per leggere un Dot devi impostare il pin corrispondente come INPUT e assicurarti che sia impostato così:
|
||||
|
||||
```python
|
||||
import RPi.GPIO as GPIO
|
||||
|
@ -105,8 +105,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:
|
||||
È buona norma attivare il PULLUP soltanto quando vuoi leggere un Dot, quindi è preferibile utilizzare
|
||||
qualcosa del genere:
|
||||
|
||||
```python
|
||||
def is_dot_connected(dot_pin):
|
||||
|
|
|
@ -5,7 +5,7 @@ manufacturer: Pimoroni
|
|||
url: https://github.com/pimoroni/explorer-hat
|
||||
github: https://github.com/pimoroni/explorer-hat
|
||||
buy: http://shop.pimoroni.com/products/explorer-hat
|
||||
description: An all-in-one light, input, motor, touch and output add-on board.
|
||||
description: All-in-one luce, input, motore, touch e add-on output board.
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
|
@ -22,10 +22,10 @@ install:
|
|||
pincount: 40
|
||||
i2c:
|
||||
'0x28':
|
||||
name: Cap Touch
|
||||
name: Touch capacitivo
|
||||
device: cap1208
|
||||
'0x48':
|
||||
name: Analog Input
|
||||
name: Input analogico
|
||||
device: ads1015
|
||||
pin:
|
||||
'3': {}
|
||||
|
@ -90,29 +90,29 @@ pin:
|
|||
mode: output
|
||||
active: high
|
||||
'37':
|
||||
name: Motor 2 -
|
||||
name: Motore 2 -
|
||||
mode: output
|
||||
active: high
|
||||
'38':
|
||||
name: Motor 1 -
|
||||
name: Motore 1 -
|
||||
mode: output
|
||||
active: high
|
||||
'40':
|
||||
name: Motor 2 +
|
||||
name: Motore 2 +
|
||||
mode: output
|
||||
active: high
|
||||
-->
|
||||
#Explorer HAT Pro
|
||||
|
||||
5V inputs and outputs, touch pads, LEDs, analog inputs and an H-Bridge motor driver make up the Explorer HAT Pro- a jack of all trades prototyping side-kick for your Raspberry Pi.
|
||||
Input ed output a 5V, touch pad, LED, input analogici e un motore H-Bridge sono le caratteristiche dell'Explorer HAT Pro- un asso nella manica per il tuo Raspberry Pi.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare il modulo puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/explorerhat
|
||||
```
|
||||
|
||||
Then import it into your Python script and start tinkering:
|
||||
Importalo poi nel tuo script Python e inizia a smanettare:
|
||||
|
||||
```bash
|
||||
import explorerhat
|
||||
|
|
|
@ -5,7 +5,7 @@ manufacturer: Pimoroni
|
|||
url: https://github.com/pimoroni/explorer-hat
|
||||
github: https://github.com/pimoroni/explorer-hat
|
||||
buy: http://shop.pimoroni.com/products/explorer-hat
|
||||
description: An all-in-one light, input, touch and output add-on board.
|
||||
description: All-in-one luce, input, touch e add-on output board.
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
|
@ -22,7 +22,7 @@ install:
|
|||
pincount: 40
|
||||
i2c:
|
||||
'0x28':
|
||||
name: Cap Touch
|
||||
name: Touch capacitivo
|
||||
device: cap1208
|
||||
pin:
|
||||
'7':
|
||||
|
@ -76,15 +76,15 @@ pin:
|
|||
-->
|
||||
#Explorer HAT
|
||||
|
||||
5V inputs and outputs, touch pads and LEDs make up the Explorer HAT, a jack of all trades prototyping side-kick for your Raspberry Pi.
|
||||
Input ed output a 5V, touch pad, LED sono le caratteristiche dell'Explorer HAT Pro- un asso nella manica per il tuo Raspberry Pi.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare il modulo puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/explorerhat
|
||||
```
|
||||
|
||||
Then import it into your Python script and start tinkering:
|
||||
Importalo poi nel tuo script Python e inizia a smanettare:
|
||||
|
||||
```bash
|
||||
import explorerhat
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
---
|
||||
name: Ground
|
||||
description: Raspberry Pi Ground Pins
|
||||
description: Pin a massa del Raspberry Pi
|
||||
pin:
|
||||
'6':
|
||||
'9':
|
||||
|
@ -12,13 +12,13 @@ pin:
|
|||
'34':
|
||||
'39':
|
||||
-->
|
||||
#Ground
|
||||
#Massa
|
||||
|
||||
The Ground pins on the Raspberry Pi are all electrically connected, so it doesn't matter
|
||||
which one you use if you're wiring up a voltage supply.
|
||||
I pin a massa sul Raspberry Pi sono tutti collegati, quindi non importa quale colleghi nel fornire
|
||||
la tensione di alimentazione.
|
||||
|
||||
Generally the one that's most convenient or closest to the rest of your connections is tidier
|
||||
and easier, or alternatively the one closest to the supply pin that you use.
|
||||
Quello che è più conveniente da raggiungere o più vicino alle tue connessioni è in generale la soluzione
|
||||
più pulita; in alternativa puoi usare uno vicino al pin di alimentazione che usi.
|
||||
|
||||
It's a good idea to use Physical Pin 17 for 3v3 and Physical Pin 25 for ground when using
|
||||
the [SPI](/pinout/spi) connections, for example, as these are right next to the important pins for SPI0.
|
||||
È una buona idea utilizzare il pin fisico 17 per la 3v3 e il pin 25 per la massa quando usi le connessioni
|
||||
[SPI](/pinout/spi), per esempio, dal momento che sono vicini ai pin più importanti per l'SPI0.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<!--
|
||||
---
|
||||
name: I2C
|
||||
description: Raspberry Pi i2c pins
|
||||
description: Raspberry Pi pin i2c
|
||||
pin:
|
||||
'3':
|
||||
name: Data
|
||||
name: Dati
|
||||
direction: both
|
||||
active: high
|
||||
'5':
|
||||
|
@ -12,33 +12,33 @@ pin:
|
|||
direction: both
|
||||
active: high
|
||||
'27':
|
||||
name: EEPROM Data
|
||||
name: Dati EEPROM
|
||||
direction: both
|
||||
active: high
|
||||
'28':
|
||||
name: EEPROM Clock
|
||||
name: Clock EEPROM
|
||||
direction: both
|
||||
active: high
|
||||
|
||||
-->
|
||||
#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.
|
||||
L'I2C del Raspberry è un modo estremamente utile per comunicare con molti tipi diversi di periferiche esterne, dall'expander digitale MCP23017, ad un ATmega collegato.
|
||||
|
||||
You can verify the address of connected I2C peripherals with a simple one-liner:
|
||||
Puoi controllare l'indirizzo delle periferiche I2C collegate con una singola riga di codice:
|
||||
|
||||
```bash
|
||||
sudo apt-get install i2c-tools
|
||||
sudo i2cdetect -y 1
|
||||
```
|
||||
|
||||
You can access i2c from Python using the smbus library:
|
||||
Puoi accedere ad i2c da Python usando la libreria smbus:
|
||||
|
||||
```bash
|
||||
sudo apt-get install python-smbus
|
||||
```
|
||||
|
||||
And then in Python:
|
||||
E poi sempre in Python:
|
||||
|
||||
```python
|
||||
import smbus
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
name: "Pi-DAC+"
|
||||
manufacturer: IQaudIO
|
||||
buy: http://www.iqaudio.co.uk
|
||||
description: An I2S digital to analog audio converter HAT for the Pi
|
||||
description: Un convertitore audio I2S da digitale ad analogico per il Raspberry
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
|
@ -16,17 +16,17 @@ pin:
|
|||
12:
|
||||
name: I2S
|
||||
15:
|
||||
name: Mute/Unmute
|
||||
description: Pi-AMP+ only (optional)
|
||||
name: Muto/Non-muto
|
||||
description: Solo Pi-AMP+ (opzionale)
|
||||
16:
|
||||
name: Rotary Encoder
|
||||
description: (optional)
|
||||
description: (opzionale)
|
||||
18:
|
||||
name: Rotary Encoder
|
||||
description: (optional)
|
||||
description: (opzionale)
|
||||
22:
|
||||
name: IR Sensor
|
||||
description: (optional)
|
||||
name: Sensore IR
|
||||
description: (opzionale)
|
||||
35:
|
||||
name: I2S
|
||||
38:
|
||||
|
@ -36,15 +36,17 @@ pin:
|
|||
-->
|
||||
#IQaudIO Pi-DAC+
|
||||
|
||||
The Pi-DAC+ takes the digital audio signals (I2S) from the Raspberry Pi and through the
|
||||
onboard Texas Instruments PCM5122 DAC delivers variable output (hardware volume
|
||||
control) analog audio to the Pi-DAC+ Phono connectors. The PI-DAC+ also, via the
|
||||
Texas Instruments TPA6133A headphone amp, supports the direct use of headphones via
|
||||
the Pi-DAC+ 3.5mm audio jack.
|
||||
Il Pi-DAC+ prende i segnali audio digitali (I2S) dal Raspberry Pi e tramite l'integrato
|
||||
Texas Instruments PCM5122 DAC restituisce un audio analogico con output variabile
|
||||
(controllo volume hardware) ai connettori Pi-DAC+ Phono. Tramite l'amplificatore per cuffia
|
||||
Texas Instruments TPA6133A, il Pi-DAC+ supporta direttamente le cuffie tramite il jack audio
|
||||
da 3.5mm.
|
||||
|
||||
The Pi Dac uses GPIO22 to mute/unmute the Pi-AMP+.
|
||||
Il Pi Dac usa il GPIO22 per attivare o disattivare il muto sul Pi-AMP+.
|
||||
|
||||
You can use GPIO25 to connect an IR sensor and GPIO23/24 for a rotary encoder. Both of
|
||||
these parts are optional, but are broken out on the Pi-DAC+ for convenient access.
|
||||
Puoi usare il GPIO25 per collegare un sensore infrarossi e il GPIO23/24 per un rotary encoder
|
||||
(trasduttore di posizione angolare). Entrambe queste parti sono opzionali, ma sono a parte nel
|
||||
Pi-DAC+ per un accesso più comodo.
|
||||
|
||||
Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software.
|
||||
Nota: i pin riservati per l'encoder e il sensore infrarossi possono essere usati per altri scopi
|
||||
se gli addon menzionati non sono stati adattati ed abilitati dal software.
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
name: Piano HAT
|
||||
manufacturer: Pimoroni
|
||||
url: https://github.com/pimoroni/piano-hat
|
||||
description: A tiny Pi piano with 16 touch-sensitive buttons
|
||||
description: Un piccolo Pi-piano con 16 tasti touch
|
||||
pincount: 40
|
||||
i2c:
|
||||
'0x28':
|
||||
name: Cap Touch A
|
||||
name: Touch capacitivo A
|
||||
device: cap1188
|
||||
datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/CAP1188%20.pdf
|
||||
'0x2b':
|
||||
name: Cap Touch B
|
||||
name: Touch capacitivo B
|
||||
device: cap1188
|
||||
datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/CAP1188%20.pdf
|
||||
pin:
|
||||
|
@ -20,13 +20,13 @@ pin:
|
|||
5:
|
||||
mode: i2c
|
||||
7:
|
||||
name: Alert A
|
||||
name: Allarme A
|
||||
mode: input
|
||||
11:
|
||||
name: Reset A
|
||||
mode: output
|
||||
13:
|
||||
name: Alert B
|
||||
name: Allarme B
|
||||
mode: input
|
||||
15:
|
||||
name: Reset B
|
||||
|
@ -34,14 +34,15 @@ 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.
|
||||
Il Piano HAT ha 16 tasti touch, 13 di questi sono singole ottave, gli altri ti danno
|
||||
le ottave superiori e inferiori e la selezione dello strumento.
|
||||
|
||||
It uses two Microchip CAP1188 chips with the i2c addresses 0x28 and 0x2b.
|
||||
Utilizza due Microchip CAP1188 con indirizzi i2c 0x28 e 0x2b.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare l'HAT puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/pianohat | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
…e seguire le istruzioni!
|
||||
|
|
|
@ -1,36 +1,37 @@
|
|||
<!--
|
||||
---
|
||||
name: PiBorg LEDBorg
|
||||
description: A single RGB LED for your Raspberry Pi
|
||||
description: Un singolo LED RBG per il tuo Raspberry Pi
|
||||
buy: https://www.piborg.org/ledborg
|
||||
pin:
|
||||
'11':
|
||||
name: Red LED
|
||||
name: LED rosso
|
||||
direction: output
|
||||
active: high
|
||||
description: PiBorg Red LED
|
||||
description: PiBorg LED rosso
|
||||
'13':
|
||||
name: Green LED
|
||||
name: LED verde
|
||||
direction: input
|
||||
active: high
|
||||
description: PiBorg Green LED
|
||||
description: PiBorg LED verde
|
||||
'15':
|
||||
name: Blue LED
|
||||
name: LED blu
|
||||
direction: output
|
||||
active: high
|
||||
description: PiBorg Blue LED
|
||||
description: PiBorg LED blu
|
||||
-->
|
||||
###The PiBorg LedBorg is an ultra-bright RGB LED board for the Raspberry Pi.
|
||||
###Il PiBorg LedBorg è un LED RGB ultra-luminoso per il Raspberry Pi.
|
||||
|
||||
PiBorg has its own driver, so you don't need to drive it manually.
|
||||
PiBorg ha il suo driver, quindi non devi controllarlo manualmente.
|
||||
|
||||
If you want a much, much wider range of colours, though, you can drive it manually using softPwm in WiringPi. The pin assignments for this are as follows:
|
||||
Se vuoi una gamma di colori decisamente più ampia tuttavia, puoi controllarlo manualmente
|
||||
usando softPwm su WiringPi. L'assegnazione dei pin è come segue:
|
||||
|
||||
WiringPi pin 0: Red LED
|
||||
WiringPi pin 2: Green LED
|
||||
WiringPi pin 3: Blue LED
|
||||
WiringPi pin 0: LED rosso
|
||||
WiringPi pin 2: LED verde
|
||||
WiringPi pin 3: LED blu
|
||||
|
||||
This is easy using WiringPi in Python:
|
||||
È facile usando WiringPi con Python:
|
||||
|
||||
|
||||
```python
|
||||
|
@ -41,8 +42,8 @@ wiringpi.softPwmCreate(0,0,100)
|
|||
wiringpi.softPwmCreate(2,0,100)
|
||||
wiringpi.softPwmCreate(3,0,100)
|
||||
|
||||
# Purple!
|
||||
wiringpi.softPwmWrite(3,100) # Full Blue
|
||||
wiringpi.softPwmWrite(0,100) # Full Red
|
||||
wiringpi.softPWMWrite(2,0) # No Green
|
||||
# Viola!
|
||||
wiringpi.softPwmWrite(3,100) # Blu al massimo
|
||||
wiringpi.softPwmWrite(0,100) # Rosso al massimo
|
||||
wiringpi.softPWMWrite(2,0) # Verde spento
|
||||
```
|
|
@ -3,23 +3,23 @@
|
|||
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: Una scheda all-in-one per luci, suoni, input ed output.
|
||||
pincount: 26
|
||||
pin:
|
||||
'7':
|
||||
name: Green LED
|
||||
name: LED verde
|
||||
direction: output
|
||||
active: high
|
||||
'11':
|
||||
name: Yellow LED
|
||||
name: LED giallo
|
||||
direction: output
|
||||
active: high
|
||||
'12':
|
||||
name: Buzzer
|
||||
name: Buzzer (cicalino)
|
||||
direction: output
|
||||
active: high
|
||||
'13':
|
||||
name: Red LED
|
||||
name: LED rosso
|
||||
direction: output
|
||||
active: high
|
||||
'15':
|
||||
|
@ -61,15 +61,16 @@ 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.
|
||||
La scheda all-in-one per luci, suoni, input ed output di Pimoroni vs Cyntech utilizza molti dei pin IO
|
||||
del Raspberry ma la seriale e l'I2C restano liberi, lasciando molto spazio alla creatività.
|
||||
|
||||
Pibrella is easy to use, first you should install the module using LXTerminal/Command Line:
|
||||
Pibrella è facile da usare, per primo devi installare il modulo usando un terminale (LXTerminal):
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/pibrella
|
||||
```
|
||||
|
||||
Then import it into your Python script and start tinkering:
|
||||
E poi lo importi nel tuo script Python per smanettare:
|
||||
|
||||
```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: Semplicemente 18 LED disposti a spirale, controllati in Python.
|
||||
pincount: 26
|
||||
pin:
|
||||
'1': {}
|
||||
|
|
|
@ -7,51 +7,51 @@ buy: https://ryanteck.uk/add-ons/6-ryanteck-rpi-motor-controller-board-063564860
|
|||
pincount: 26
|
||||
pin:
|
||||
'11':
|
||||
name: Motor 1 A
|
||||
name: Motore 1 A
|
||||
direction: output
|
||||
active: high
|
||||
'12':
|
||||
name: Motor 1 B
|
||||
name: Motore 1 B
|
||||
direction: output
|
||||
active: high
|
||||
'15':
|
||||
name: Motor 2 A
|
||||
name: Motore 2 A
|
||||
direction: output
|
||||
active: high
|
||||
'16':
|
||||
name: Motor 2 B
|
||||
name: Motore 2 B
|
||||
direction: output
|
||||
active: high
|
||||
-->
|
||||
#Ryanteck Motor Controller Board
|
||||
|
||||
###A quick and easy way to start driving motors on your Raspberry Pi
|
||||
###Una maniera facile e veloce per controllare dei motori dal tuo Raspberry
|
||||
|
||||
```python
|
||||
##Simple motor script for the RTK-000-001
|
||||
##Semplice script per i motori dell'RTK-000-001
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
#Set to broadcom pin numbers
|
||||
#Imposta la numerazione Broadcom
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
|
||||
#Motor 1 = Pins 17 and 18
|
||||
#Motor 2 = Pins 22 and 23
|
||||
#Motore 1 = Pin 17 e 18
|
||||
#Motore 2 = Pin 22 e 23
|
||||
GPIO.setup(17, GPIO.OUT)
|
||||
GPIO.setup(18, GPIO.OUT)
|
||||
|
||||
#Now loop forever turning one direction for 5 seconds, then the other
|
||||
#Ora ripeti all'infinito attivando alternativamente ogni direzione per 5s
|
||||
while (True):
|
||||
#Sleep 1 second then turn 17 on
|
||||
#Sleep di 1 secondo, poi attiva il 17
|
||||
GPIO.output(18, 0)
|
||||
time.sleep(1)
|
||||
GPIO.output(17, 1);
|
||||
time.sleep(5);
|
||||
#And now the other way round
|
||||
#Ed ora l'opposto
|
||||
GPIO.output(17, 0)
|
||||
time.sleep(1);
|
||||
GPIO.output(18, 1);
|
||||
time.sleep(5);
|
||||
#And loop back around
|
||||
#And final cleanup
|
||||
#E si ricomincia
|
||||
#Cleanup finale
|
||||
GPIO.cleanup()
|
||||
```
|
|
@ -3,7 +3,7 @@
|
|||
name: "Sense HAT"
|
||||
manufacturer: Raspberry Pi Foundation
|
||||
url: https://www.raspberrypi.org/products/sense-hat/
|
||||
description: Add-on board that includes an 8×8 RGB LED matrix, 5-button joystick as well as IMU and environmental sensors
|
||||
description: Scheda add-on che include una matrice 8×8 LED RBG, un joystick a 5 bottoni, un IMU e sensori ambientali
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
|
@ -34,14 +34,16 @@ pin:
|
|||
-->
|
||||
#Sense HAT
|
||||
|
||||
The Sense HAT is an add-on board for Raspberry Pi comprising of a 8×8 RGB LED matrix, a five-button joystick and the following sensors:
|
||||
Il Sense HAT è una scheda add-on per il Raspberry Pi che comprende una matrice 8×8 LED RGB, un joystick a 5 bottoni e i
|
||||
seguenti sensori:
|
||||
|
||||
Gyroscope, Accelerometer, Magnetometer, Temperature, Barometric pressure and Humidity.
|
||||
Giroscopio, Accelerometro, Magnetometro, Temperatura, Pressione barometrica e Umidità.
|
||||
|
||||
The shift register driving the LED Matrix is a LED2472G connected via an ATTINY88 to the SPI bus of the Pi. The Multi-Directional SKRHABE010 Switch/Joystick is similarly connected to the SPI bus.
|
||||
Lo shift register che controlla la matrice LED è un LED2472G, collegato tramite un ATTINY88 al bus SPI del Raspberry.
|
||||
Il Joystick/Switch multidirezionale SKRHABE010 è anch'esso connesso al bus SPI.
|
||||
|
||||
The sensors themselves operate (mostly) over the i2c bus:
|
||||
Di per sé, i sensori operano (prevalentemente) sul bus I2C:
|
||||
|
||||
The IMU (Gyroscope, Accelerometer, Magnetometer) through a LSM9DS1 found at i2c address 0x1c(0x1e),0x6a(0x6b), with Interrupts on the ATTINY88.
|
||||
Gli IMU (Giroscopio, Accelerometro, Magnetometro) tramite un LSM9DS1 collocato all'indirizzo i2c 0x1c(0x1e), 0x6a(0x6b), con Interrupts sul ATTINY88.
|
||||
|
||||
Environemental sensors are represented by a LPS25H Pressure+Temperature sensor at address 0x5c and by a HTS221 Humidity+Temp sensor at 0x5f on the i2c bus.
|
||||
I sensori ambientali sono implementati da un sensore LPS25H (pressione e temperatura) all'indirizzo 0x5c e da un sensore HTS221 (umidità e temperatura) all'indirizzo 0x5f sul bus I2C.
|
|
@ -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: Un sensore 3D posizionale per le dita.
|
||||
install:
|
||||
'apt':
|
||||
- 'python-smbus'
|
||||
|
@ -28,15 +28,15 @@ 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 percepisce la posizione del tuo dito in 3 dimensioni, e restituisce un asse in X, Y, Z
|
||||
che puoi usare nei tuoi script Python.
|
||||
|
||||
It also recognises gestures, including swipes and more.
|
||||
È anche in grado di riconoscere gesti, come ad esempio swipe ("scorrimento"), e molti altri.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare l'HAT puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/skywriter | bash
|
||||
```
|
||||
|
||||
And follow the instructions!
|
||||
…e seguire le istruzioni!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
---
|
||||
name: SPI
|
||||
description: Raspberry Pi SPI pins
|
||||
description: Pin SPI del Raspberry
|
||||
pincount: 5
|
||||
pin:
|
||||
'11':
|
||||
|
@ -44,11 +44,12 @@ pin:
|
|||
-->
|
||||
#SPI - Serial Peripheral Interface
|
||||
|
||||
###Known as the four-wire serial bus, SPI lets you daisy-chain multiple compatible devices off a single set of pins by assigning them different chip-select pins.
|
||||
###Conosciuto come il bus seriale "a quattro fili", l'SPI ti permette di concatenare una serie di periferiche compatibili
|
||||
su un solo set di pin assegnandogli dei diversi pin chip-select.
|
||||
|
||||
A useful example of an SPI peripheral is the MCP23S17 digital IO expander chip Note the S in place of the 0 found on the I2C version.
|
||||
Un esempio efficace di una periferica SPI è l'MCP23S17, un chip IO expander digitale (nota la S al posto dello zero nella versione I2C).
|
||||
|
||||
To talk to an SPI device, you assert its corresponding chip-select pin. By default the Pi has CE0 and CE1.
|
||||
Per comunicare con una periferica SPI, devi controllare il suo chip-select pin corrispondente. Di default, il Raspberry ha CE0 e CE1.
|
||||
|
||||
```python
|
||||
import spidev
|
||||
|
@ -59,8 +60,10 @@ spi.max_speed_hz = 1000000
|
|||
spi.xfer([value_8bit])
|
||||
```
|
||||
|
||||
You can also use the SPI port to "Bit-Bang" an ATmega 328, loading Arduino sketches onto it with Gordon's modified version of AVRDude.
|
||||
Puoi utilizzare anche le porte SPI per fare "Bit-Bang" su un ATmega 328, caricando i progetti di Arduino tramite la versione modificata
|
||||
dell'AVRDude di Gordon.
|
||||
|
||||
Hook up you Pi's SPI port to that of your ATmega, and power the ATmega from the 3.3v pin on the Pi. Make sure you're not running any SPI device drivers, and run "avrdude -p m328p -c gpio" to verify the connection.
|
||||
Collega la porta SPI del Raspberry a quella dell'ATmega, ed alimenta l'ATmega dal pin a 3.3V sul Raspberry.
|
||||
Assicurati di non avere alcun driver SPI in esecuzione, ed esegui "avrdude -p m328p -c gpio" per verificare la connessione.
|
||||
|
||||
See the individual pins to learn how to connect up your ATmega.
|
||||
Controlla i pin individuali per imparare come collegare il tuo ATmega.
|
||||
|
|
|
@ -4,34 +4,33 @@ name: Traffic HAT
|
|||
manufacturer: Ryanteck LTD.
|
||||
url: http://www.ryanteck.uk/store/traffichat
|
||||
buy: http://www.ryanteck.uk/store/traffichat
|
||||
description: A quick and easy way to learn the basics of GPIO on a budget. All in
|
||||
a nice HAT.
|
||||
description: Una maniera facile e veloce per imparare le basi del GPIO a basso prezzo. Tutto in un singolo HAT.
|
||||
pincount: 40
|
||||
pin:
|
||||
'15':
|
||||
name: LED1 / Green
|
||||
name: LED1 / verde
|
||||
direction: output
|
||||
active: high
|
||||
'16':
|
||||
name: LED2 / Amber
|
||||
name: LED2 / ambra
|
||||
direction: output
|
||||
active: high
|
||||
'18':
|
||||
name: LED3 / Red
|
||||
name: LED3 / rosso
|
||||
direction: output
|
||||
active: high
|
||||
'22':
|
||||
name: Button
|
||||
name: Bottone
|
||||
direction: input
|
||||
active: high
|
||||
'29':
|
||||
name: Buzzer
|
||||
name: Buzzer (cicalino)
|
||||
direction: output
|
||||
active: high
|
||||
-->
|
||||
#Traffic HAT
|
||||
|
||||
###A quick and easy way to learn the basics of GPIO on a budget. All in a nice HAT.
|
||||
###Una maniera facile e veloce per imparare le basi del GPIO a basso prezzo. Tutto in un singolo HAT.
|
||||
|
||||
```python
|
||||
import RPi.GPIO as IO
|
||||
|
@ -39,7 +38,7 @@ from time import sleep
|
|||
|
||||
IO.setmode(IO.BCM)
|
||||
|
||||
#Lights
|
||||
#Luci
|
||||
IO.setup(22,IO.OUT)
|
||||
IO.setup(23,IO.OUT)
|
||||
IO.setup(24,IO.OUT)
|
||||
|
@ -47,6 +46,6 @@ IO.setup(24,IO.OUT)
|
|||
#Buzzer
|
||||
IO.setup(5,IO.OUT)
|
||||
|
||||
#Button
|
||||
#Bottone
|
||||
IO.setup(25,IO.IN,pull_up_down=IO.PUD_UP)
|
||||
```
|
|
@ -1,30 +1,34 @@
|
|||
<!--
|
||||
---
|
||||
name: UART
|
||||
description: Raspberry Pi UART pins
|
||||
description: Pin UART del Raspberry
|
||||
pin:
|
||||
'8':
|
||||
name: TXD / Transmit
|
||||
name: TXD / Trasmissione
|
||||
direction: output
|
||||
active: high
|
||||
'10':
|
||||
name: RXD / Receive
|
||||
name: RXD / Ricezione
|
||||
direction: input
|
||||
active: high
|
||||
-->
|
||||
#UART - Universal Asynchronous Receiver/Transmitter
|
||||
|
||||
###The 2 UART pins in WiringPi are: 15, 16
|
||||
###I due pin UART in WiringPi sono il 15 e il 16
|
||||
|
||||
UART is a handy, straight forward way to interface an Arduino ( or bootloaded ATmega ) with your Pi. You must, however, be careful with logic-levels between the two devices: the Pi is 3.3v and the Arduino is 5v. Connect the two and you might conjure up some magic blue smoke.
|
||||
UART è una maniera facile e semplice per collegare un Arduino (or un ATmega bootloaded) con il tuo Raspberry. Devi, tuttavia,
|
||||
fare attenzione alla differenza di tensione tra le due periferiche: il Raspberry è a 3.3V, e l'Arduino invece a 5V. Se
|
||||
li colleghi rischi di evocare del magico fumo blu.
|
||||
|
||||
Personally I'm a fan of building out a Arduino Bootloaded ATmega 328 circuit on a breadboard with a voltage regulator to take the Pi's 5v line and convert it to 3.3v. The ATmega 328 seems to run quite happily at 3.3v using a 16Mhz crystal and you'll then have an Arduino clone with 3.3v logic.
|
||||
Personalmente preferisco costruire un circuito con un Arduino Bootloaded ATmega 328 su una breadboard con un regolatore di tensione
|
||||
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.
|
||||
|
||||
Assuming you have WiringPi2-Python installed, the following python example opens the Pi's UART at 9600baud and puts 'hello world'
|
||||
Se hai WiringPi2-Python installato, questo esempio in python apre l'UART del Raspberry a 9600baud e ci scrive 'ciao mondo!'
|
||||
|
||||
```python
|
||||
import wiringpi2 as wiringpi
|
||||
wiringpi.wiringPiSetup()
|
||||
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
|
||||
wiringpi.serialPuts(serial,'hello world!')
|
||||
wiringpi.serialPuts(serial,'ciao mondo!')
|
||||
```
|
|
@ -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 LED RGB accecanti su un unico HAT
|
||||
github: https://github.com/pimoroni/unicornhat
|
||||
install:
|
||||
'apt':
|
||||
|
@ -18,27 +18,27 @@ install:
|
|||
pincount: 40
|
||||
pin:
|
||||
'12':
|
||||
name: Data
|
||||
name: Dati
|
||||
direction: output
|
||||
mode: pwm
|
||||
active: high
|
||||
description: WS2812 Data
|
||||
description: WS2812 Dati
|
||||
-->
|
||||
#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 LED accecanti montati su un HAT e controllati da una velocissima libreria in C, con cui puoi comunicare
|
||||
via Python, rendono l'Unicorn HAT il fratello maggiore (e più luminoso) del 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!
|
||||
Nota: Unicorn HAT usa alcuni trucchetti col PWM, che sfruttano lo stesso hardware che ti permette di produrre
|
||||
suoni tramite il jack audio (analogico), per cui non puoi usare entrambi allo stesso momento!
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
Per preparare e impostare l'HAT puoi utilizzare l'installer fornito:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/unicornhat | bash
|
||||
```
|
||||
|
||||
Then import it into your Python script and start tinkering:
|
||||
Importalo poi nel tuo script Python e inizia a smanettare:
|
||||
|
||||
```bash
|
||||
import unicornhat
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
---
|
||||
name: WiringPi GPIO Pinout
|
||||
name: Mappa pin GPIO WiringPi
|
||||
page_url: wiringpi
|
||||
pin:
|
||||
'3':
|
||||
|
@ -58,24 +58,29 @@ pin:
|
|||
-->
|
||||
#Raspberry Pi WiringPi
|
||||
|
||||
###WiringPi is an attempt to bring Arduino-wiring-like simplicity to the Raspberry Pi.
|
||||
###WiringPi è un tentativo di portare la semplicità di connessione dell'Arduino sul Raspberry.
|
||||
|
||||
The goal is to have a single common platform and set of functions for accessing the Raspberry Pi GPIO across muliple 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.
|
||||
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".
|
||||
|
||||
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.
|
||||
Gli utenti Python noteranno il 2 alla fine del pacchetto; la libreria WiringPi2-Python finalmente porta tutta una serie di
|
||||
funzionalità preesistenti di WiringPi a Python, incluse le ultime presenti in WiringPi 2.
|
||||
|
||||
For more information about WiringPi you should visit the official WiringPi website.
|
||||
Per maggiori informazioni su WiringPi, dai un'occhiata al loro sito ufficiale.
|
||||
|
||||
##Getting started with WiringPi
|
||||
##Primi passi con WiringPi
|
||||
|
||||
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.
|
||||
WiringPi usa il suo sistema di numerazione dei pin; qui imparerai come WiringPi indicizza i pin GPIO, cosa fanno tali pin e
|
||||
come realizzare progetti interessanti con Python o Ruby.
|
||||
|
||||
WiringPi, the Arduino-like GPIO library for the Pi, is available in C right from Gordon's git repository, Python, Ruby and even Perl and PHP to a lesser extent.
|
||||
WiringPi, la libreria GPIO "simil-Arduino" per il Raspberry, è disponibile in C, direttamente dalla repository git di Gordon,
|
||||
in Python, in Ruby, e persino in Perl e PHP, sebbene non in maniera altrettanto completa.
|
||||
|
||||
Installing to Python couldn't be easier, just:
|
||||
Installarla in Python non potrebbe essere più semplice. Semplicemente:
|
||||
|
||||
```bash
|
||||
sudo pip install wiringpi2
|
||||
```
|
||||
|
||||
Note the 2 on the end? That's the all new, shinier WiringPi!
|
||||
Hai notato il 2 alla fine? È la nuova, splendente libreria WiringPi!
|
||||
|
|
Loading…
Reference in New Issue