SER.getDTR()

This command gets Data Terminal Ready (DTR) from the serial port USIF0.

It has no input parameter.

The return value is a Python integer which is either 0 if DTR is set to OFF or 1 if DTR is set to ON.

Example:

 

dtr = SER.getDTR()

 

gets DTR from USIF0, assigning the return value to dtr.