View Single Post
  #3   Spotlight this post!  
Unread 24-01-2007, 11:55
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: easyC PRO Tutorial - Including the Camera

Here is a sample that will show you what your looking for. I used a user code block to add
the %3d so it holds three places for printing on the graphics display. We are going to release
an update on Monday that will add this feature to the graphics display along with a few new
ones.


Code:
while ( 1 )
      {
            Joy1_X = GetOIAInput ( 1 , 1 ) ;
            Joy1_Y = GetOIAInput ( 1 , 2 ) ;
            PrintTextToGD ( 2 , 3 , 0 , "Port 1 Joystick X: %3d\n" , (int)Joy1_X ) ;
            PrintTextToGD ( 4 , 3 , 0 , "Port 1 Joystick Y: %3d\n" , (int)Joy1_Y ) ;
      }
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 24-01-2007 at 11:58.