The DigitalInput class reads the state of one Arduino digital pin.  
 More...
The DigitalInput class reads the state of one Arduino digital pin. 
- Author
- John Gaby
◆ DigitalInput()
      
        
          | robotCore.DigitalInput.DigitalInput | ( | int | pin | ) |  | 
      
 
- Parameters
- 
  
    | pin | - Specifies the pin to read |  
 
 
 
◆ 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:
- D:/SDASVN/2025/RaspberryPi/VSCode/Source/robotCore/DigitalInput.java