Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Using the LCD

GongYi edited this page Jul 27, 2014 · 4 revisions

Overview

ev3 has a 178 x 128 pixels Monochrome LCD. python-ev3 delegate the images manipulation to debina python image library and write the image buffer to /dev/fb0 directly

ev3.Lcd

ev3.Lcd expose a draw property which is a PIL.ImageDraw object. You can use this object to draw any image or text on the lcd.

from ev3.ev3dev import Lcd
d= Lcd()        
d.draw.ellipse((20, 20, 60, 60))
d.update()

There's another buffer property which is the backend PIL.Image object.

Clone this wiki locally