From c0dcb1f755012b844326956ea3dcd329b93c7384 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 11 Nov 2024 13:56:31 +0000 Subject: [PATCH] Basic dual display example. --- examples/dual-displays.py | 122 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100755 examples/dual-displays.py diff --git a/examples/dual-displays.py b/examples/dual-displays.py new file mode 100755 index 0000000..d385805 --- /dev/null +++ b/examples/dual-displays.py @@ -0,0 +1,122 @@ +#!/usr/bin/env python3 +import colorsys +import math +import sys +import time + +from PIL import Image, ImageDraw, ImageOps + +import st7789 + +print( + f""" +dual-displays.py - A basic demo of driving two displays. + +If you're using Breakout Garden- + +- Plug a 1.3" ROUND LCD (SPI) breakout into the back slot. +- Plug a SQUARE LCD (SPI) breakout into the front. + +Adjust the offset and settings below if you want to use +two round and two square. + +Usage: {sys.argv[0]}