Thread: Java SPI comm
View Single Post
  #3   Spotlight this post!  
Unread 26-01-2013, 12:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Java SPI comm

Here's my updated SPIDevice class which is working for the LCD screen that I'm working with.

Changes (I also included a patch to Mitchel's version):
Don't read if writeOnly is true.
Add method for setting frame mode
fix typo in transferStatic method name
don't reset SS module and channel after transfer (fixes CS problem previously mentioned)
Attached Files
File Type: java SPIDevice.java (17.0 KB, 25 views)
File Type: txt SPIDevice.patch.txt (5.9 KB, 15 views)