serial_dashboard.comms.handshake_board

serial_dashboard.comms.handshake_board(ser, sleep_time=1)

Connect to board by closing, then opening connection, discarding anything that may be in the input buffer.

Parameters
  • ser (serial.Serial() instance) – The device we are reading from.

  • sleep_time (int, default 1) – Time in seconds to wait after opening the serial connection before clearing the input buffer.