Go to Post Act humble, avoid hubris, and post widely and thou shalt receivith postive rep. ;) - artdutra04 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-03-2010, 09:31
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
reading in GPIO state

Hi,

I'm not the programmer for our team, but since our programmer's progress is slow, I'm trying to do some research for her before hand so we can make good progress tomorrow.

How would I read in the state of a GPIO pin in Java?

Thanks,
windell
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2010, 09:44
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: reading in GPIO state

Quote:
Originally Posted by windell747 View Post
Hi,

I'm not the programmer for our team, but since our programmer's progress is slow, I'm trying to do some research for her before hand so we can make good progress tomorrow.

How would I read in the state of a GPIO pin in Java?

Thanks,
windell
I am not exactly sure what you are asking. Do you mean the state of a particular slot on the cRio? And what do you mean by state? Whether something is there or not?
__________________
I don't need a signature.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-03-2010, 09:47
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,069
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: reading in GPIO state

DigitalModule.getInstance(int slot).getDIO(int channel)

Alternatively, you can create a DigitalInput object and use the get() method.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Sidecar GPIO output states? Ether FRC Control System 2 16-03-2010 00:23
crio dashboard GPIO output darkorbit Programming 8 09-02-2010 15:29
Allocation of PWM and GPIO Channels Chipawa Programming 7 11-02-2009 00:36
Dashboard Analog Meters and GPIO? Geek_Girl Programming 1 17-12-2008 09:50
Hawaii Gov. Lingle State of State speech-FIRST and STEM MoeMom FIRST In the News... 0 29-01-2008 17:04


All times are GMT -5. The time now is 01:22.

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