|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Re: reading in GPIO state
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?
|
|
#3
|
|||||
|
|||||
|
Re: reading in GPIO state
DigitalModule.getInstance(int slot).getDIO(int channel)
Alternatively, you can create a DigitalInput object and use the get() method. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |