-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67b7306
commit 98bc3a1
Showing
344 changed files
with
32,210 additions
and
9,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ __pycache__ | |
*.o | ||
*.P | ||
.history | ||
*.mpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
2023-11-29 | ||
---------- | ||
|
||
- Changed examples to use the same source code, with different | ||
`tft_config.py` and `tft_buttons.py` modules. This is to make it easier to support additional devices and configurations. | ||
- Added `tft_buttons.py` modules to support the buttons. | ||
- Added `tft_config.py` modules to support different configurations. | ||
- Added examples to demonstrate and test new features. | ||
- Changed `text()` method to user micropython.viper to improve performance. | ||
- Added `polygon()` method to draw polygons with optional rotation. This is not fast, but it works. | ||
- Added `make-example.py` script to generate documentation for examples, configs and utilities. | ||
- Added documentation for examples, configs and utilities extracted from docstrings using `make-example.py`. | ||
- Added color_order parameter to st7789py to allow different color orders. | ||
- Added custom_init parameter to st7789py to allow custom initialization of the display. | ||
- Added custom_rotation parameter to st7789py to allow custom display sizes, rotations and byte swapping for color data. | ||
- Added `pbitmap` method to support drawing bitmap graphics one line at a time. | ||
- Added `examples/upload_all.sh` script to upload all examples to the board. | ||
- Added `run_all.sh` script to run all examples on the board. | ||
- Updated and improved documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 354224033269ae3498edec28eb943172 | ||
config: 10d3fe7b78c477da90fd28fc9c006e17 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. toctree:: | ||
:glob: | ||
|
||
configs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _../tft_configs/atom_s3: | ||
|
||
M5STACK AtomS3 128x128 (GC9107) | ||
=============================== | ||
|
||
|
||
https://docs.m5stack.com/en/core/AtomS3 | ||
|
||
tft_configs/atom_s3/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/atom_s3/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/atom_s3/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
M5STACK AtomS3 buttons | ||
|
||
.. literalinclude:: ../../../tft_configs/atom_s3/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _../tft_configs/esp32_320x240: | ||
|
||
Generic ESP32 320x240 | ||
===================== | ||
|
||
|
||
|
||
tft_configs/esp32_320x240/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/esp32_320x240/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/esp32_320x240/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Generic ESP32 with Two buttons | ||
|
||
.. literalinclude:: ../../../tft_configs/esp32_320x240/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _../tft_configs/m5stack_core: | ||
|
||
M5STACK CORE 320x240 (ILI9342) | ||
============================== | ||
|
||
|
||
|
||
tft_configs/m5stack_core/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/m5stack_core/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Buttons class for examples, modify for your device. | ||
|
||
Attributes: | ||
name (str): The name of the device. | ||
left (Pin): The Pin object representing the left button. | ||
right (Pin): The Pin object representing the right button. | ||
fire (Pin): The Pin object representing the fire button. | ||
thrust (Pin): The Pin object representing the thrust button. | ||
hyper (Pin): The Pin object representing the hyper button. | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.. _../tft_configs/m5stack_core2: | ||
|
||
M5STACK CORE2 320x240 (ILI9342) | ||
=============================== | ||
|
||
|
||
|
||
tft_configs/m5stack_core2/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core2/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/m5stack_core2/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
from machine import Pin | ||
|
||
|
||
class Buttons: | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core2/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _../tft_configs/m5stack_core3: | ||
|
||
M5STACK CoreS3 320x240 (ILI9342) | ||
================================ | ||
|
||
|
||
|
||
tft_configs/m5stack_core3/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core3/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/m5stack_core3/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Buttons class for examples, modify for your device. | ||
|
||
Attributes: | ||
name (str): The name of the device. | ||
left (Pin): The Pin object representing the left button. | ||
right (Pin): The Pin object representing the right button. | ||
fire (Pin): The Pin object representing the fire button. | ||
thrust (Pin): The Pin object representing the thrust button. | ||
hyper (Pin): The Pin object representing the hyper button. | ||
|
||
.. literalinclude:: ../../../tft_configs/m5stack_core3/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.. _../tft_configs/rp2040_touch_lcd_128: | ||
|
||
RP2040-Touch-LCD-1.28 240x240 (GC9A01) | ||
====================================== | ||
|
||
|
||
|
||
tft_configs/rp2040_touch_lcd_128/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/rp2040_touch_lcd_128/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/rp2040_touch_lcd_128/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
from machine import Pin | ||
|
||
|
||
class Buttons: | ||
|
||
.. literalinclude:: ../../../tft_configs/rp2040_touch_lcd_128/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _../tft_configs/t-dongle-s3: | ||
|
||
LilyGo T-Dongle-S3 80x160 (ST7735) | ||
================================== | ||
|
||
|
||
|
||
tft_configs/t-dongle-s3/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/t-dongle-s3/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/t-dongle-s3/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
|
||
|
||
.. literalinclude:: ../../../tft_configs/t-dongle-s3/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _../tft_configs/t-embed: | ||
|
||
LilyGo T-embed 170x320 | ||
====================== | ||
|
||
|
||
|
||
tft_configs/t-embed/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/t-embed/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/t-embed/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Buttons class for examples, modify for your device. | ||
|
||
Attributes: | ||
name (str): The name of the device. | ||
left (Pin): The Pin object representing the left button. | ||
right (Pin): The Pin object representing the right button. | ||
fire (Pin): The Pin object representing the fire button. | ||
thrust (Pin): The Pin object representing the thrust button. | ||
hyper (Pin): The Pin object representing the hyper button. | ||
|
||
.. literalinclude:: ../../../tft_configs/t-embed/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _../tft_configs/t_qt_pro: | ||
|
||
LilyGo T-QT Pro 128x128 (GC9107) | ||
================================ | ||
|
||
|
||
https://www.lilygo.cc/products/t-qt-pro | ||
|
||
tft_configs/t_qt_pro/tft_config.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. literalinclude:: ../../../tft_configs/t_qt_pro/tft_config.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
||
|
||
tft_configs/t_qt_pro/tft_buttons.py | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
LILYGO® T-QT Pro buttons | ||
|
||
.. literalinclude:: ../../../tft_configs/t_qt_pro/tft_buttons.py | ||
:language: python | ||
:linenos: | ||
:lines: 1- | ||
|
Oops, something went wrong.