RobotCore
Robot Core Documentation
|
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 () |
boolean | getArduino () |
The DigitalInput class reads the state of one Arduino digital pin.
robotCore.DigitalInput.DigitalInput | ( | int | pin | ) |
pin | - Specifies the pin to read |
boolean robotCore.DigitalInput.get | ( | ) |
Gets the current state of the pin.