View Single Post
  #1   Spotlight this post!  
Unread 08-02-2016, 08:24
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 55
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
SPI Write Limitation

Hi All,

I've been working with some adafruit DotStar LED strands, driving them with the RIO's onboard SPI (using Java). I have them working, but to do so required I chunk the data to send into 128-byte sections, and call the spi.write() multiple times (once per section). This was done because the maximum return value I ever saw spi.write() give was 128.

I'm not horribly experienced with SPI - is this an implicit limitation of SPI in general? Or of the libraries and hardware we're using for FRC? Perhaps also I forgot to set up some buffer properly. Has anyone else seen this?

EDIT: Here's the code in question
DotStarsLEDStrip.java

Last edited by gerthworm : 08-02-2016 at 08:26.
Reply With Quote