RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
robotCore.DigitalInput Class Reference

The DigitalInput class reads the state of one Arduino digital pin. More...

Public Member Functions

void init (int pin, int addr)
 DigitalInput (int pin)
 DigitalInput (int pin, int addr)
boolean get ()

Detailed Description

The DigitalInput class reads the state of one Arduino digital pin.

Author
John Gaby

Definition at line 33 of file DigitalInput.java.

Constructor & Destructor Documentation

◆ DigitalInput() [1/2]

robotCore.DigitalInput.DigitalInput ( int pin)
Parameters
pin- Specifies the pin to read

Definition at line 75 of file DigitalInput.java.

◆ DigitalInput() [2/2]

robotCore.DigitalInput.DigitalInput ( int pin,
int addr )

Definition at line 80 of file DigitalInput.java.

Member Function Documentation

◆ get()

boolean robotCore.DigitalInput.get ( )

Gets the current state of the pin.

Returns
Returns true if the pin is 1, false if it is 0.

Definition at line 90 of file DigitalInput.java.

◆ init()

void robotCore.DigitalInput.init ( int pin,
int addr )

Definition at line 40 of file DigitalInput.java.


The documentation for this class was generated from the following file: