Digole Display Driver
Display driver for Digole Serial OLED/LCD displays
Functions
serial

Functions

int serial_open (char *comport, int highspeed)
 serial port open
void serial_close (int sfd)
 serial port close

Function Documentation

void serial_close ( int  sfd)

serial port close

Close the serial port file descriptor and restore terminal and HW com port to their original settings.

Parameters:
sfdserial file descriptor returned from serial_open
int serial_open ( char *  comport,
int  highspeed 
)

serial port open

Open the serial port device file (e.g. /dev/ttyUSB0) for read/write at default 9600bps operational mode of Digole displays. Set terminal characteristics for binary data and no HW flow control. Save the current tty and HW com port attributes to be restored at shutdown via serial_close

Parameters:
comportstring value for the device file (e.g. "/dev/ttyUSB0")
highspeedwhen non-zero, the UART is opened at 115200baud
 All Files Functions