2021-05-06 06:14:24 +00:00
<!DOCTYPE html>
< html class = "writer-html5" lang = "en" >
< head >
2023-11-18 23:31:25 +00:00
< meta charset = "utf-8" / > < meta name = "generator" content = "Docutils 0.18.1: http://docutils.sourceforge.net/" / >
2021-12-23 18:54:40 +00:00
2021-05-06 06:14:24 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< title > Example Programs — st7789py 0.1.0 documentation< / title >
2021-12-23 18:54:40 +00:00
< link rel = "stylesheet" href = "_static/pygments.css" type = "text/css" / >
< link rel = "stylesheet" href = "_static/css/theme.css" type = "text/css" / >
2021-05-06 06:14:24 +00:00
<!-- [if lt IE 9]>
< script src = "_static/js/html5shiv.min.js" > < / script >
<![endif]-->
2023-11-18 23:31:25 +00:00
< script src = "_static/jquery.js?v=5d32c60e" > < / script >
< script src = "_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c" > < / script >
< script src = "_static/documentation_options.js?v=01f34227" > < / script >
< script src = "_static/doctools.js?v=888ff710" > < / script >
< script src = "_static/sphinx_highlight.js?v=dc90522c" > < / script >
2021-12-23 18:54:40 +00:00
< script src = "_static/js/theme.js" > < / script >
2021-05-06 06:14:24 +00:00
< link rel = "index" title = "Index" href = "genindex.html" / >
< link rel = "search" title = "Search" href = "search.html" / >
2023-11-30 01:56:48 +00:00
< link rel = "next" title = "M5STACK AtomS3 128x128 (GC9107)" href = "configs/atom_s3.html" / >
2021-05-06 06:14:24 +00:00
< link rel = "prev" title = "st7789py Reference" href = "st7789py.html" / >
< / head >
2021-12-23 18:54:40 +00:00
< body class = "wy-body-for-nav" >
2021-05-06 06:14:24 +00:00
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
< div class = "wy-side-scroll" >
< div class = "wy-side-nav-search" style = "background: #2980B9" >
2023-11-18 23:31:25 +00:00
< a href = "index.html" class = "icon icon-home" >
st7789py
2021-05-06 06:14:24 +00:00
< / a >
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "search.html" method = "get" >
2023-11-18 23:31:25 +00:00
< input type = "text" name = "q" placeholder = "Search docs" aria-label = "Search docs" / >
2021-05-06 06:14:24 +00:00
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
2021-12-23 18:54:40 +00:00
< / div > < div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "Navigation menu" >
2021-08-12 15:54:15 +00:00
< p class = "caption" role = "heading" > < span class = "caption-text" > Contents:< / span > < / p >
2021-05-06 06:14:24 +00:00
< ul class = "current" >
< li class = "toctree-l1" > < a class = "reference internal" href = "index.html" > st7789py Driver< / a > < / li >
2023-11-18 23:31:25 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "st7789py.html" > st7789py Reference< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "st7789py.html#st7789py.color565" > < code class = "docutils literal notranslate" > < span class = "pre" > color565()< / span > < / code > < / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789< / span > < / code > < / a > < ul >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.init" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.init()< / span > < / code > < / a > < / li >
2023-11-18 23:31:25 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.hard_reset" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.hard_reset()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.soft_reset" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.soft_reset()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.sleep_mode" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.sleep_mode()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.inversion_mode" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.inversion_mode()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.rotation" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.rotation()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.vline" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.vline()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.hline" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.hline()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.pixel" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.pixel()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.blit_buffer" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.blit_buffer()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.rect" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.rect()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.fill_rect" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.fill_rect()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.fill" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.fill()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.line" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.line()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.vscrdef" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.vscrdef()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.vscsad" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.vscsad()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.text" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.text()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.bitmap" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.bitmap()< / span > < / code > < / a > < / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.pbitmap" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.pbitmap()< / span > < / code > < / a > < / li >
2023-11-18 23:31:25 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.write" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.write()< / span > < / code > < / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.write_width" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.write_width()< / span > < / code > < / a > < / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "st7789py.html#st7789py.ST7789.polygon" > < code class = "docutils literal notranslate" > < span class = "pre" > ST7789.polygon()< / span > < / code > < / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
< / ul >
< / li >
2021-05-06 06:14:24 +00:00
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "#" > Example Programs< / a > < ul >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#configuration-modules" > Configuration modules< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/atom_s3.html" > M5STACK AtomS3 128x128 (GC9107)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/atom_s3.html#tft-configs-atom-s3-tft-config-py" > tft_configs/atom_s3/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/atom_s3.html#tft-configs-atom-s3-tft-buttons-py" > tft_configs/atom_s3/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/esp32_320x240.html" > Generic ESP32 320x240< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/esp32_320x240.html#tft-configs-esp32-320x240-tft-config-py" > tft_configs/esp32_320x240/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/esp32_320x240.html#tft-configs-esp32-320x240-tft-buttons-py" > tft_configs/esp32_320x240/tft_buttons.py< / a > < / li >
2021-12-23 18:54:40 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/m5stack_core.html" > M5STACK CORE 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core.html#tft-configs-m5stack-core-tft-config-py" > tft_configs/m5stack_core/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core.html#tft-configs-m5stack-core-tft-buttons-py" > tft_configs/m5stack_core/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/m5stack_core2.html" > M5STACK CORE2 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core2.html#tft-configs-m5stack-core2-tft-config-py" > tft_configs/m5stack_core2/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core2.html#tft-configs-m5stack-core2-tft-buttons-py" > tft_configs/m5stack_core2/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/m5stack_core3.html" > M5STACK CoreS3 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core3.html#tft-configs-m5stack-core3-tft-config-py" > tft_configs/m5stack_core3/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/m5stack_core3.html#tft-configs-m5stack-core3-tft-buttons-py" > tft_configs/m5stack_core3/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html" > RP2040-Touch-LCD-1.28 240x240 (GC9A01)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html#tft-configs-rp2040-touch-lcd-128-tft-config-py" > tft_configs/rp2040_touch_lcd_128/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html#tft-configs-rp2040-touch-lcd-128-tft-buttons-py" > tft_configs/rp2040_touch_lcd_128/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/t-dongle-s3.html" > LilyGo T-Dongle-S3 80x160 (ST7735)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t-dongle-s3.html#tft-configs-t-dongle-s3-tft-config-py" > tft_configs/t-dongle-s3/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t-dongle-s3.html#tft-configs-t-dongle-s3-tft-buttons-py" > tft_configs/t-dongle-s3/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/t-embed.html" > LilyGo T-embed 170x320< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t-embed.html#tft-configs-t-embed-tft-config-py" > tft_configs/t-embed/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t-embed.html#tft-configs-t-embed-tft-buttons-py" > tft_configs/t-embed/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/t_qt_pro.html" > LilyGo T-QT Pro 128x128 (GC9107)< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t_qt_pro.html#tft-configs-t-qt-pro-tft-config-py" > tft_configs/t_qt_pro/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/t_qt_pro.html#tft-configs-t-qt-pro-tft-buttons-py" > tft_configs/t_qt_pro/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html" > LilyGo T-DISPLAY 135x240< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html#tft-configs-ttgo-tdisplay-tft-config-py" > tft_configs/ttgo_tdisplay/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html#tft-configs-ttgo-tdisplay-tft-buttons-py" > tft_configs/ttgo_tdisplay/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html" > LilyGo T-DISPLAY RP2040 135x240< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html#tft-configs-ttgo-tdisplay-rp2040-tft-config-py" > tft_configs/ttgo_tdisplay_rp2040/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html#tft-configs-ttgo-tdisplay-rp2040-tft-buttons-py" > tft_configs/ttgo_tdisplay_rp2040/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/waveshare_114.html" > Waveshare Pico LCD 1.14 135x240< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_114.html#tft-configs-waveshare-114-tft-config-py" > tft_configs/waveshare_114/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_114.html#tft-configs-waveshare-114-tft-buttons-py" > tft_configs/waveshare_114/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/waveshare_13.html" > Waveshare Pico LCD 1.3 240x240< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_13.html#tft-configs-waveshare-13-tft-config-py" > tft_configs/waveshare_13/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_13.html#tft-configs-waveshare-13-tft-buttons-py" > tft_configs/waveshare_13/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "configs/waveshare_2.html" > Waveshare Pico LCD 2 240x320< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_2.html#tft-configs-waveshare-2-tft-config-py" > tft_configs/waveshare_2/tft_config.py< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "configs/waveshare_2.html#tft-configs-waveshare-2-tft-buttons-py" > tft_configs/waveshare_2/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "#examples" > Examples< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/alien.html" > alien.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/boxlines.html" > boxlines.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/chango.html" > chango.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/color_test.html" > color_test.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/colorbars.html" > colorbars.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/feathers.html" > feathers.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/fonts.html" > fonts.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/hello.html" > hello.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/noto_fonts.html" > noto_fonts.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/proverbs.html" > proverbs.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/roids.html" > roids.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/rotations.html" > rotations.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/scroll.html" > scroll.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/tiny_hello.html" > tiny_hello.py< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "examples/tiny_toasters.html" > tiny_toasters.py< / a > < / li >
2021-12-23 18:54:40 +00:00
< / ul >
< / li >
2021-05-06 06:14:24 +00:00
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "fonts.html" > Fonts< / a > < ul >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "fonts.html#bitmap-fonts" > Bitmap Fonts< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "fonts.html#bitmap-font-conversion" > Bitmap Font Conversion< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "fonts.html#bitmap-font-samples" > Bitmap Font Samples< / a > < ul >
< li class = "toctree-l4" > < a class = "reference internal" href = "fonts.html#x8-rom-fonts" > 8x8 Rom Fonts< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "fonts.html#x16-rom-fonts" > 8x16 Rom Fonts< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "fonts.html#id2" > 16x16 Rom Fonts< / a > < / li >
< li class = "toctree-l4" > < a class = "reference internal" href = "fonts.html#x32-rom-fonts" > 16x32 Rom Fonts< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "fonts.html#true-type-fonts" > True Type fonts< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "fonts.html#true-type-font-conversion" > True-Type Font Conversion< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "utilities.html" > Utilities< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/create_png_examples.html" > create_png_examples.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/create_png_examples.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/create_png_examples.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/image_converter.html" > image_converter.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/image_converter.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/image_converter.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/make_colorbars_bitmap.html" > make_colorbars_bitmap.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/make_colorbars_bitmap.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/make_colorbars_bitmap.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/sprites_converter.html" > sprites_converter.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/sprites_converter.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/sprites_converter.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/text_font_converter.html" > text_font_converter.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/text_font_converter.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/text_font_converter.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "utilities/write_font_converter.html" > write_font_converter.py< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/write_font_converter.html#example" > Example< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "utilities/write_font_converter.html#usage" > Usage< / a > < / li >
< / ul >
< / li >
2021-05-06 06:14:24 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "genindex.html" > Index< / a > < / li >
2021-05-06 06:14:24 +00:00
< / ul >
< / div >
< / div >
< / nav >
2021-12-23 18:54:40 +00:00
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" > < nav class = "wy-nav-top" aria-label = "Mobile navigation menu" style = "background: #2980B9" >
2021-05-06 06:14:24 +00:00
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
< a href = "index.html" > st7789py< / a >
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content style-external-links" >
2021-12-23 18:54:40 +00:00
< div role = "navigation" aria-label = "Page navigation" >
2021-05-06 06:14:24 +00:00
< ul class = "wy-breadcrumbs" >
2023-11-18 23:31:25 +00:00
< li > < a href = "index.html" class = "icon icon-home" aria-label = "Home" > < / a > < / li >
< li class = "breadcrumb-item active" > Example Programs< / li >
2021-05-06 06:14:24 +00:00
< li class = "wy-breadcrumbs-aside" >
< a href = "_sources/examples.rst.txt" rel = "nofollow" > View page source< / a >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
2021-12-23 18:54:40 +00:00
< section id = "example-programs" >
2023-11-18 23:31:25 +00:00
< h1 > Example Programs< a class = "headerlink" href = "#example-programs" title = "Link to this heading" > < / a > < / h1 >
2023-11-30 01:56:48 +00:00
< section id = "configuration-modules" >
< h2 > Configuration modules< a class = "headerlink" href = "#configuration-modules" title = "Link to this heading" > < / a > < / h2 >
< p > To run the examples, you need two modules that set up the display and buttons for the example MicroPython programs: < strong > tft_config.py< / strong > and < strong > tft_buttons.py< / strong > . These modules configure the display and manage button interactions, ensuring compatibility with various processors and displays. The provided modules located in the tft_configs folder are specific to the devices I used during testing; use them as a reference to create configuration modules for your device if it’ s not one of those included.< / p >
2023-11-18 23:31:25 +00:00
< div class = "toctree-wrapper compound" >
< ul >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/atom_s3.html" > M5STACK AtomS3 128x128 (GC9107)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/atom_s3.html#tft-configs-atom-s3-tft-config-py" > tft_configs/atom_s3/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/atom_s3.html#tft-configs-atom-s3-tft-buttons-py" > tft_configs/atom_s3/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/esp32_320x240.html" > Generic ESP32 320x240< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/esp32_320x240.html#tft-configs-esp32-320x240-tft-config-py" > tft_configs/esp32_320x240/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/esp32_320x240.html#tft-configs-esp32-320x240-tft-buttons-py" > tft_configs/esp32_320x240/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/m5stack_core.html" > M5STACK CORE 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core.html#tft-configs-m5stack-core-tft-config-py" > tft_configs/m5stack_core/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core.html#tft-configs-m5stack-core-tft-buttons-py" > tft_configs/m5stack_core/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/m5stack_core2.html" > M5STACK CORE2 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core2.html#tft-configs-m5stack-core2-tft-config-py" > tft_configs/m5stack_core2/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core2.html#tft-configs-m5stack-core2-tft-buttons-py" > tft_configs/m5stack_core2/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/m5stack_core3.html" > M5STACK CoreS3 320x240 (ILI9342)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core3.html#tft-configs-m5stack-core3-tft-config-py" > tft_configs/m5stack_core3/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/m5stack_core3.html#tft-configs-m5stack-core3-tft-buttons-py" > tft_configs/m5stack_core3/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html" > RP2040-Touch-LCD-1.28 240x240 (GC9A01)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html#tft-configs-rp2040-touch-lcd-128-tft-config-py" > tft_configs/rp2040_touch_lcd_128/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/rp2040_touch_lcd_128.html#tft-configs-rp2040-touch-lcd-128-tft-buttons-py" > tft_configs/rp2040_touch_lcd_128/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/t-dongle-s3.html" > LilyGo T-Dongle-S3 80x160 (ST7735)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t-dongle-s3.html#tft-configs-t-dongle-s3-tft-config-py" > tft_configs/t-dongle-s3/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t-dongle-s3.html#tft-configs-t-dongle-s3-tft-buttons-py" > tft_configs/t-dongle-s3/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/t-embed.html" > LilyGo T-embed 170x320< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t-embed.html#tft-configs-t-embed-tft-config-py" > tft_configs/t-embed/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t-embed.html#tft-configs-t-embed-tft-buttons-py" > tft_configs/t-embed/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/t_qt_pro.html" > LilyGo T-QT Pro 128x128 (GC9107)< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t_qt_pro.html#tft-configs-t-qt-pro-tft-config-py" > tft_configs/t_qt_pro/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/t_qt_pro.html#tft-configs-t-qt-pro-tft-buttons-py" > tft_configs/t_qt_pro/tft_buttons.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
< / li >
2023-11-30 01:56:48 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html" > LilyGo T-DISPLAY 135x240< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html#tft-configs-ttgo-tdisplay-tft-config-py" > tft_configs/ttgo_tdisplay/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/ttgo_tdisplay.html#tft-configs-ttgo-tdisplay-tft-buttons-py" > tft_configs/ttgo_tdisplay/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html" > LilyGo T-DISPLAY RP2040 135x240< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html#tft-configs-ttgo-tdisplay-rp2040-tft-config-py" > tft_configs/ttgo_tdisplay_rp2040/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/ttgo_tdisplay_rp2040.html#tft-configs-ttgo-tdisplay-rp2040-tft-buttons-py" > tft_configs/ttgo_tdisplay_rp2040/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/waveshare_114.html" > Waveshare Pico LCD 1.14 135x240< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_114.html#tft-configs-waveshare-114-tft-config-py" > tft_configs/waveshare_114/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_114.html#tft-configs-waveshare-114-tft-buttons-py" > tft_configs/waveshare_114/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/waveshare_13.html" > Waveshare Pico LCD 1.3 240x240< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_13.html#tft-configs-waveshare-13-tft-config-py" > tft_configs/waveshare_13/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_13.html#tft-configs-waveshare-13-tft-buttons-py" > tft_configs/waveshare_13/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "configs/waveshare_2.html" > Waveshare Pico LCD 2 240x320< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_2.html#tft-configs-waveshare-2-tft-config-py" > tft_configs/waveshare_2/tft_config.py< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "configs/waveshare_2.html#tft-configs-waveshare-2-tft-buttons-py" > tft_configs/waveshare_2/tft_buttons.py< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< / section >
< section id = "examples" >
< h2 > Examples< a class = "headerlink" href = "#examples" title = "Link to this heading" > < / a > < / h2 >
< div class = "toctree-wrapper compound" >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/alien.html" > alien.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/boxlines.html" > boxlines.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/chango.html" > chango.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/color_test.html" > color_test.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/colorbars.html" > colorbars.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/feathers.html" > feathers.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/fonts.html" > fonts.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/hello.html" > hello.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/noto_fonts.html" > noto_fonts.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/proverbs.html" > proverbs.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/roids.html" > roids.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/rotations.html" > rotations.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/scroll.html" > scroll.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/tiny_hello.html" > tiny_hello.py< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples/tiny_toasters.html" > tiny_toasters.py< / a > < / li >
2023-11-18 23:31:25 +00:00
< / ul >
2021-08-12 15:54:15 +00:00
< / div >
2023-11-30 01:56:48 +00:00
< / section >
2021-12-23 18:54:40 +00:00
< / section >
2021-05-06 06:14:24 +00:00
< / div >
< / div >
2021-12-23 18:54:40 +00:00
< footer > < div class = "rst-footer-buttons" role = "navigation" aria-label = "Footer" >
2021-05-06 06:14:24 +00:00
< a href = "st7789py.html" class = "btn btn-neutral float-left" title = "st7789py Reference" accesskey = "p" rel = "prev" > < span class = "fa fa-arrow-circle-left" aria-hidden = "true" > < / span > Previous< / a >
2023-11-30 01:56:48 +00:00
< a href = "configs/atom_s3.html" class = "btn btn-neutral float-right" title = "M5STACK AtomS3 128x128 (GC9107)" accesskey = "n" rel = "next" > Next < span class = "fa fa-arrow-circle-right" aria-hidden = "true" > < / span > < / a >
2021-05-06 06:14:24 +00:00
< / div >
< hr / >
< div role = "contentinfo" >
2021-12-23 18:54:40 +00:00
< p > < / p >
2021-05-06 06:14:24 +00:00
< / div >
2021-12-23 18:54:40 +00:00
Built with < a href = "https://www.sphinx-doc.org/" > Sphinx< / a > using a
2021-05-06 06:14:24 +00:00
< a href = "https://github.com/readthedocs/sphinx_rtd_theme" > theme< / a >
2021-12-23 18:54:40 +00:00
provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
2021-05-06 06:14:24 +00:00
< / footer >
< / div >
< / div >
< / section >
< / div >
2021-12-23 18:54:40 +00:00
< script >
2021-05-06 06:14:24 +00:00
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
2021-12-23 18:54:40 +00:00
< / script >
2021-05-06 06:14:24 +00:00
< / body >
< / html >