Multi-DotStar on ItsyBitsy M4 Express.

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
water35
 
Posts: 40
Joined: Sun Mar 17, 2019 7:12 am

Multi-DotStar on ItsyBitsy M4 Express.

Post by water35 »

When I wire Multi-DotStar to ItsyBitsy M4 Express, then initialize via:

Code: Select all

import board
import adafruit_dotstar
pixels = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 2)
pixels[1] = (10, 0, 0)
The built in DotStar (pixels[0]) off, can't use as board status indicator, is't normal?
How to use built in pixels[0] as status indicator and other pixels for user at same time?

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Multi-DotStar on ItsyBitsy M4 Express.

Post by dastels »

What did you wire the external "multi-dotstar" to? What DotStar product did you use?

Dave

User avatar
water35
 
Posts: 40
Joined: Sun Mar 17, 2019 7:12 am

Re: Multi-DotStar on ItsyBitsy M4 Express.

Post by water35 »

I use APA102 / SK9822 LED wire likes below:
1.jpg
1.jpg (113 KiB) Viewed 50 times

User avatar
water35
 
Posts: 40
Joined: Sun Mar 17, 2019 7:12 am

Re: Multi-DotStar on ItsyBitsy M4 Express.

Post by water35 »

Additional, the pixels[0] (built in DotStar) still use for user fine via

Code: Select all

pixels[0] = (n, n, n)
, just can't use as board status indicator after initialize via:

Code: Select all

import board
import adafruit_dotstar
pixels = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 2)
pixels[1] = (10, 0, 0)
Not means built in DotStar (pixels[0]) not work.

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Multi-DotStar on ItsyBitsy M4 Express.

Post by dastels »

Ok, that seems right. If you wanted to leave the onboard DotStar as a status indicator you could *probably* (I haven't tried it) wire the external DotStars to the MOSI and SCK pins on the ItsyBitsy. However that will be a problem if you wanted to use the SPI bus for anything else.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”