RobotCore
Robot Core Documentation
Public Member Functions | List of all members
robotCore.DigitalInput Class Reference

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

Public Member Functions

 DigitalInput (int pin)
 
boolean get ()
 

Detailed Description

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

Author
John Gaby

Constructor & Destructor Documentation

◆ DigitalInput()

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

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.

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