Other classes

Remote Control

Beacon Seeker

Button

Leds

Power Supply

Sound

Screen

Bitmap fonts

The Screen class allows to write text on the LCD using python imaging library (PIL) interface (see description of the text() method here). The ev3dev.fonts module contains bitmap fonts in PIL format that should look good on a tiny EV3 screen:

import ev3dev.fonts as fonts
screen.draw.text((10,10), 'Hello World!', font=fonts.load('luBS14'))
ev3dev.fonts.available()

Returns list of available font names.

ev3dev.fonts.load(name)

Loads the font specified by name and returns it as an instance of PIL.ImageFont class.

The following image lists all available fonts. The grid lines correspond to EV3 screen size:

_images/fonts.png

Lego Port