low level spi control for dotstar
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- lobsterman
- Posts: 8
- Joined: Fri Mar 10, 2017 12:56 pm
low level spi control for dotstar
Hi all, I am trying to control a single dotstar LED with my low level control tools. i am quite familiar with I2C (via SDA, SCL Pins), but the Dotstar needs to be driven with SPI which in my hands is a 4 wire interface (MOSI, MISO, SCK, CS). The Adafruit description talks about a 2 wire control <https://learn.adafruit.com/adafruit-dotstar-leds> labeled data D0 and clock C0 and I am trying to match up how the C1/D1 maps onto my standard SPI pins MOSI/MISO/SCK/CS. Is MOSI = D1? Is SCK = C1? I am controlling the interface from an FTDI click <http://pub.ucpros.com/download/ftdi_cli ... qs2h4cm8t4> using my serial java libraries and any advice on the fundamental mechanics for how the Adafruit/Dotstar terminology matches up with standard SPI terminology would be greatly appreciated. Best,
- coyote20000
- Posts: 10
- Joined: Sun Jan 12, 2014 2:59 pm
Re: low level spi control for dotstar
Hey there,
I think the icsp pins would work without issue.
Mosi would be your data pin and CLK would be your clock. MISO is not needed because the led really has nothing to say back to the uC. (One way communication).
I think the icsp pins would work without issue.
Mosi would be your data pin and CLK would be your clock. MISO is not needed because the led really has nothing to say back to the uC. (One way communication).
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: low level spi control for dotstar
MOSI -> DI
SCK -> CI
MISO isn't used since the LEDs do not return any data. CS isn't used in the case of DotStars.
You want to use the I pins (DI/CI) instead of the O pins (DO/CO). The I pins are the input to the chain, the O pins are the output of the chain.
SCK -> CI
MISO isn't used since the LEDs do not return any data. CS isn't used in the case of DotStars.
You want to use the I pins (DI/CI) instead of the O pins (DO/CO). The I pins are the input to the chain, the O pins are the output of the chain.
Please be positive and constructive with your questions and comments.