Go to Post Experience...you can't buy it, you might be able to get some for free by reading CD a lot, but usually you have to earn it, and it's not always fun. - MrForbes [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 18-01-2016, 14:56
acastagna acastagna is offline
Registered User
FRC #1493
 
Join Date: Jan 2012
Location: Albany High School
Posts: 34
acastagna is an unknown quantity at this point
Rev Robotics MXP Digit board Java code

Here is or team's Java code for getting the Rev Robotics Digit board to display text. The code is in the team 1493 GitHub:

https://github.com/FIRSTteam1493/Rev...rd/tree/master

The character repository contains the byte binary codes for each character (note that each character takes up two elements in the array). Characters are printed from right to left on the 14-segment displays (so the first character in byte1 will end up in the rightmost display). You store whatever you want to print in byte1, then run i2c.writeBulk(byte1) to write it to the board's internal RAM and therefore to the displays. Right now the code is set to cycle through all 36 characters, but you can change that to whatever you want.

Cheers!

-1493
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 08:43.

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