Any reason why I wouldn’t be able to move the Blinkt! pins to 2 other pins? Thinking of adding some bling to a robot that’s also got an explorer HAT?
Might be a decent learning article? I’d definitely be interested in knowing how to use say the pHAT DAC and Unicorn pHAT together, which I think you showed in a video once?
June 25, 2016, 11:18pm
sure, just use jumper wires and touch up the blinkt library to reflect the GPIO used for DAT and CLK:
This file has been truncated.
import RPi.GPIO as GPIO
__version__ = '0.1.1'
DAT = 23
CLK = 24
NUM_PIXELS = 8
BRIGHTNESS = 7
pixels = [[0, 0, 0, BRIGHTNESS]] * NUM_PIXELS
_gpio_setup = False
_clear_on_exit = True
Combining a pHAT DAC and Unicorn would be a bit more complicated but I’m fairly sure
@sandyjmacdonald gave the secret sauce somewhere on the forum… if I find it and I’ll flag again.
June 25, 2016, 11:25pm
here it is:
… very much the same principle really, I thought they’d be some additional tricks required. Well, obviously if you want the leds to react to the music there’s a fair bit more than just getting them up and running independly.
I agree it would make good material for a learning article… I’ll add it down on ‘The List’.
Cheers for that