@Ag2000CO wrote:
Working through some of the examples on github and have more questions than answers with the ubercorn-rainbow-2x1.py example. Link is https://github.com/pimoroni/unicorn-hat-hd/blob/master/examples/ubercorn-rainbow-2x1.py
The example controls two 16x16 unicorns side by sideOf course I can’t make the code work (or I wouldn’t be here)
The documentation I found is http://docs.pimoroni.com/unicornhathd/#porting-from-unicorn-hat
In the code there are three unicornhathd function used that I can’t find documentation for:
List item unicornhathd.enable_addressing()
List item unicornhathd.setup_buffer(32, 16)
List item unicornhathd.setup_display(0, 0, 0, 0)
If I comment out these lines of code and change the x values to 0-15 the rainbow is displayed. (This example is the rainbow.py example with “rappers”)
Assuming I get the software to work the hardware question remains. If I understand SPI correctly to control 2 unicorns, 2 chip select pins are required. Am I correct that Pi header pins 24 and 26 are used? Pin 24 of course works for one Unicorn.
Other than that I am a happy camper. I have enough ideas for the unicorn that 2 would be nice. Four would be great!
Posts: 1
Participants: 1