View Single Post
  #1   Spotlight this post!  
Unread 08-10-2013, 14:29
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
I2C bytes to Arduino in LV?

We want to send data to an Arduino via I2C in LabVIEW. We have the Arduino side worked out. We don't know how to send the bits and bytes to the Arduino in LabVIEW. We want to send three bytes or registers (if that is the correct terminology) that:

Register 1 - select The LED group number (1-12).

Register 2 - A function code. Here's a list: DIM, FLASH, MODULATE, FLASHMOD

Register 3 - data, For the functions (how fast to dim, how quick to flash etc.).

I was hoping to find an example of someone talking to an Arduino (or similar board) via the FRC breakout I2C. And yes we could just use the I/O on the breakout for the LEDs but we want to learn I2C for the future.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620