1 of 1 people found this helpful
We currently do not have a code example with apa102 leds. However you can do the following
When you are changing project from arduino to PSoC then:
- You need to convert the arduino Library C++ code to C code because PSoC Creator supports C.
- Then you need to convert the arduino specific API's to PSoC specific API's.
- Here is the link to get started with PSoC Creator: Tutorial: Getting started with PSoC Creator | Blinking an LED · open-storm/docs.open-storm.org Wiki · GitHub
In this case you need to drop two digital output pins in the TopDesign: one for DI and other for CI input.
Connect the VCC and GND of the APA102 leds to the VCC and GND pins of the PSoC 5LP kit.
While assigning pins in the Design wide resources, you can choose desired pins by having a look at pinouts section of the datasheet of the PSoC 5LP device you are using.
There is Cypress software to drive the WS2811/12 LED's. It was written for PSoC3/4/5, you can adapt it for the APA102 device. See attachment.
StripLightLib.cylib.zip 438.1 K