Tags:
view all tags
---+ Solutions to exercise 10: TFT display ---++ Introduction The exercises on the TFT display can be implemented on the 1.4" display with its ST7735 controller or on the 2.4" display with the ILI9341 controller. Of course the coordinates must be adapted to the different pixel resolution of the display. ---++ Exercise 1: The drivers for the display controller: * ST7735.py * ili934x.py are both already included in the !MicroPython binary. Try to import them for verification. Otherwise there is nothing much to be explained about the solution. The expected results are already shown on the exercise sheet. ---++ Exercise 2: The text fonts are also already available in the !MicroPython binary. Since RAM is a scarce resource on the ESP32 we need a method allowing to have them stored in flash and get fast access to them nevertheless. The section on fonts in [[TFT display]] explains how this is done. In order ti use the font all you have to do is <verbatim>import fonts.sysfont as sysfont display.draw_text(0, 127, 'DCSIT', sysfont, Display.RED,landscape=True)</verbatim> in case of the font _sysfont_. -- %USERSIG{UliRaich - 2021-02-06}% ---++ Comments %COMMENT%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2021-02-06
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
IoT_Course_English Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback