test perfect sync with upstream
This commit is contained in:
parent
f946e6a03f
commit
352bd30bcd
@ -100,13 +100,12 @@ To read a Dot you should set its corresponding pin as an INPUT and make sure it'
|
||||
|
||||
```python
|
||||
import RPi.GPIO as GPIO
|
||||
GPIO.setmode(GPIO.BCM )
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
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:
|
||||
It's good practice to only turn on the PULLUP when you actually want to read the Dot, so a method like this is recommended for reading:
|
||||
|
||||
```python
|
||||
def is_dot_connected(dot_pin):
|
||||
|
@ -42,7 +42,7 @@ 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.
|
||||
|
||||
The Pi Dac uses GPIO22 to mute/unmute the Pi-AMP+.
|
||||
The Pi-DAC+ uses GPIO22 to mute/unmute the 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.
|
||||
|
@ -1,8 +1,11 @@
|
||||
<!--
|
||||
---
|
||||
name: PiBorg LEDBorg
|
||||
manufacturer: PiBorg
|
||||
description: A single RGB LED for your Raspberry Pi
|
||||
url: https://www.piborg.org/ledborg-new/install
|
||||
buy: https://www.piborg.org/ledborg
|
||||
pincount: 26
|
||||
pin:
|
||||
'11':
|
||||
name: Red LED
|
||||
@ -22,7 +25,7 @@ pin:
|
||||
-->
|
||||
###The PiBorg LedBorg is an ultra-bright RGB LED board for the Raspberry Pi.
|
||||
|
||||
PiBorg has its own driver, so you don't need to drive it manually.
|
||||
the PiBorg Ledborg has its own driver, so you don't need to drive it manually.
|
||||
|
||||
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:
|
||||
|
||||
@ -32,7 +35,6 @@ WiringPi pin 3: Blue LED
|
||||
|
||||
This is easy using WiringPi in Python:
|
||||
|
||||
|
||||
```python
|
||||
import wiringpi2 as wiringpi
|
||||
wiringpi.wiringPiSetup()
|
||||
|
Loading…
Reference in New Issue
Block a user