Menu help
Close
Menu
Functions IO
Import and declare the IO function:
from robot_library import IO
input_output = IO()
SetIO
from robot_library import IO
input_output = IO.SetIO(pin_number = int, type = String)
- pin_number a number between 0 and 9
- type “INPUT” or “OUTPUT”
digitalRead
Input_output.digitalRead(pin_number = int)
digitalRead will return True or False
- pin_number: a number between 0 and 9
digitalWrite
Input_output.digitalWrite(pin_number = int, state = String)
digitalWrtie will set the IO pin to HIGH or LOW
- pin_number: a number between 0 and 9
- state: “HIGH” or “LOW”
