commit
d541c45d96
@ -105,8 +105,7 @@ GPIO.setup(dot_pin, GPIO.IN, GPIO.PUD_UP)
|
|||||||
state = GPIO.input(dot_pin)
|
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
|
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:
|
||||||
this is recommended for reading:
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def is_dot_connected(dot_pin):
|
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
|
Texas Instruments TPA6133A headphone amp, supports the direct use of headphones via
|
||||||
the Pi-DAC+ 3.5mm audio jack.
|
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
|
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.
|
these parts are optional, but are broken out on the Pi-DAC+ for convenient access.
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
<!--
|
<!--
|
||||||
---
|
---
|
||||||
name: PiBorg LEDBorg
|
name: PiBorg LEDBorg
|
||||||
|
manufacturer: PiBorg
|
||||||
description: A single RGB LED for your Raspberry Pi
|
description: A single RGB LED for your Raspberry Pi
|
||||||
|
url: https://www.piborg.org/ledborg-new/install
|
||||||
buy: https://www.piborg.org/ledborg
|
buy: https://www.piborg.org/ledborg
|
||||||
|
pincount: 26
|
||||||
pin:
|
pin:
|
||||||
'11':
|
'11':
|
||||||
name: Red LED
|
name: Red LED
|
||||||
@ -22,7 +25,7 @@ pin:
|
|||||||
-->
|
-->
|
||||||
###The PiBorg LedBorg is an ultra-bright RGB LED board for the Raspberry Pi.
|
###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:
|
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:
|
This is easy using WiringPi in Python:
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import wiringpi2 as wiringpi
|
import wiringpi2 as wiringpi
|
||||||
wiringpi.wiringPiSetup()
|
wiringpi.wiringPiSetup()
|
||||||
|
Loading…
Reference in New Issue
Block a user