Inhaltsverzeichnis

PICGraphic driver

This driver supports the „PICGraphic“ serial-to-graphic interface by Peter Bailey: a PIC microcontroller that drives a monochrome graphic display and is connected to a serial port.


Display Section

Display <name> {
    Driver    'PICGraphic'
    Port      <string>
    Speed     <number>
    Size      <string>
    Font      <string>
    Contrast  <number>
}

Parameters

Driver'PICGraphic'
Portserial device the interface is attached to (e.g. '/dev/ttyS1')
Speedbaud rate of the serial port (the example in the source uses 115200)
Sizesize of the display in pixels, specified as <width>x<height>. Required.
Fontfont size, specified as <width>x<height>. Default is '6×8', which is the only size supported at the moment.
Contrastcontrast, 0..15

Plugins

LCD::contrast(n)accepts a contrast value (0..15). Note: in the current source the command is not sent to the display yet, so the function has no visible effect.

Example

This is the example from the source of the driver:

Display PICGraphic {
    Driver    'PICGraphic'
    Port      '/dev/ttyS1'
    Contrast  8
    Size      '48x128'
    Speed     115200
    Font      '6x8'
}

Requirements

No external libraries. The driver is selected at build time with –with-drivers=PICGraphic.