connect#
method
- BaseArduinoDriver.connect(port: str, board: str = 'uno') None[source]#
Initialize a connection with the arduino. If the arduino is already connected to another process this will also kill that program.
- Parameters:
- portstr
Computer serial port to which the arduino is connected
- boardstr, optional
- The type of the arduino that is being used:
uno: Arduino Unomega: Arduino Megadue: Arduino Duenano: Arduino Nano
- Raises:
- ValueError
If the board type is not supported.