ParallelPort¶
- class ParallelPort(self)¶
Bases:
pybind11_object
Parallel port management under unix.
The code below shows how to send a data over the parallel port.
#include <visp3/io/vpParallelPort.h> int main() { #ifdef VISP_HAVE_PARPORT vpParallelPort parport; unsigned char data = 5; // 0x00000101 = 5 in decimal parport.sendData(data); // D0 and D2 are set to logical level 1 #endif }
Constructor to access to a parallel port.
Open and initialise the parallel port by sending 0 to the data bus.
Set the default device to “/dev/parport0”.
Methods
Constructor to access to a parallel port.
Get the last data sent to the parallel port.
Send a data to the parallel port.
Inherited Methods
Operators
__doc__
Constructor to access to a parallel port.
__module__
Attributes
__annotations__
- __init__(self)¶
Constructor to access to a parallel port.
Open and initialise the parallel port by sending 0 to the data bus.
Set the default device to “/dev/parport0”.