Go to Post The bulk of the hardest fun you'll ever have is opening up that box in early january, and the six week of chaos that that box of parts puts you through. - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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: 57
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi