User Manual

you cannot share the SPI device since there's no chip select)
Pi 5V to LED 5V
Pi GND to LED GND
Pi MOSI to LED DI
Pi SCLK to LED CI
Here's the Raspberry PI wired up with bit-bang SPI (you can use
any
two digital pins, but its not as fast as hardware SPI)
Pi 5V to LED 5V
Pi GND to LED GND
Pi GPIO5 to LED DI
Pi GPIO6 to LED CI
CircuitPython Installation of DotStar Library
You'll need to install the Adafruit CircuitPython DotStar (https://adafru.it/CKG) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/uap). Our CircuitPython starter guide has a great
page on how to install the library bundle (https://adafru.it/ABU).
For non-express boards like the Trinket M0 or Gemma M0, you'll need to manually install the necessary libraries from
the bundle:
adafruit_dotstar.mpy
adafruit_bus_device
Before continuing make sure your board's lib folder or root filesystem has the adafruit_dotstar.mpy, and
adafruit_bus_device files and folders copied over.
Next connect to the board's serial REPL (https://adafru.it/Awz) so you are at the CircuitPython >>> prompt.
Python Installation of DotStar Library
You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also require
verifying you are running Python 3. Since each platform is a little different, and Linux changes often, please visit the
CircuitPython on Linux guide to get your computer ready (https://adafru.it/BSN)!
Once that's done, from your command line run the following command:
sudo pip3 install adafruit-circuitpython-dotstar
© Adafruit Industries https://learn.adafruit.com/adafruit-dotstar-leds Page 45 of 48