Difference: ST7735TFTDisplay (2 vs. 3)

Revision 32020-07-28 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 10: A TFT Display and the ST7735 display controller

Introduction

Line: 11 to 11
 
  • random rectangles
  • random circles
in random colors. These are 3 distinct tests. Draw the lines first, show them for 5s, clear the display and start showing the rectangles ...
Added:
>
>
img_8008.png img_8009.png img_8010.png
Write the above script once using direct drawing primitives (draw_line(...), draw_rectangle(...), draw_circle(...)) and then modify your code to use the primitives (line(...),rect(...),circle(...)) passing through the frame buffer. Where do you have to place the show() calls to get a similar result?

Exercise 2: Text drawing

 
Changed:
<
<
-- Uli Raich - 2020-07-26
>
>
Write a script that prints "DSCIT" in three different fonts (sysfont, courier20 and EspressoDolce18x24) in the colors red, green and blue. Draw the text once in portrait and once in landscape mode

img_8011.png

Exercise 3: Graphical User Interface (GUI) elements from nanogui

Create 2 meters, one for temperature (0..50) and one for humidity (0..100). Generate dummy temperature and humidity values and display them in the meters.

Replace the dummy measurements by real ones from the SHT30.

Exercise 4: Plots

 
Added:
>
>
Create a plot of a damped oscillator

Exercise 5: A new GUI element (bonus point)

Create a new "scale" GUI element showing a scale. This should can be used e.g. to create a Voltmeter making use of the ESP32 ADC.

Exercise 6: Mario, a real challenge!

Two simple arcade games come with the SD1351 driver demos. One of them is a Super Mario game, which however is base on hardware we don't have. Can you modify the code such that you can run the program with the hardware we have (e.g the analogue joystick)?

-- Uli Raich - 2020-07-26

 

Comments

<--/commentPlugin-->
\ No newline at end of file
Added:
>
>
META FILEATTACHMENT attachment="img_8008.png" attr="" comment="" date="1595919334" name="img_8008.png" path="img_8008.png" size="213150" user="UliRaich" version="1"
META FILEATTACHMENT attachment="img_8009.png" attr="" comment="" date="1595919334" name="img_8009.png" path="img_8009.png" size="216259" user="UliRaich" version="1"
META FILEATTACHMENT attachment="img_8010.png" attr="" comment="" date="1595919334" name="img_8010.png" path="img_8010.png" size="240860" user="UliRaich" version="1"
META FILEATTACHMENT attachment="img_8011.png" attr="" comment="" date="1595921348" name="img_8011.png" path="img_8011.png" size="188911" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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