Display

Class Documentation

class compLib.Display.Display

Access the different IR Sensors of the robot

static clear()

Clear the display

static write(line: int, text: <module 'string' from '/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/string.py'>)

Write a string of text to the integrated display.

Parameters
  • line – Line to write. Between 1 and 4

  • text – Text to write. Up to 16 characters

Raises

IndexError

Examples

Write a line to the display

import time
from compLib.Display import Display

Display.write(1, "Hello World!")