Skip to content

Display

Jacob Allen edited this page Mar 31, 2020 · 5 revisions

OLED Server

Node to control the SSD1306 driven OLED (optionally) on the Pi-pucks e.g. an Adafruit PiOLED 128x32.

Parameters

  • ~persist, bool: whether the screen content should be persistent (default: true).
  • ~font_path, str: the path to the font file to use (default: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf).
  • ~font_size, int: the font size in points, which for the display is effectively pixels (default: 14).

Published Topics

None.

Subscribed Topics

  • oled/text, String: text to display using the configured font on the OLED.
  • oled/image, Image: an image to display on the OLED, should be 128x32 or it will be scaled to fit. To avoid automatic scaling and colour conversion you should ensure the image is already monochrome, ideally it would be draw in 1bit colour then converted to 8bit mono for transmission (due to the limitations of ROS images).

Dependencies

Python Packages

  • luma.core
  • luma.oled
  • PIL