From f6c0e9f04523c7f21f54f29c946e1d9c8554517f Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 15 May 2026 08:00:15 +0100 Subject: [PATCH] [presto] fix resolution (480x480, hi-res) --- presto/README.md | 5 ++++- presto/main.py | 6 +++--- presto/poc.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/presto/README.md b/presto/README.md index 50d6aa54..01f3f720 100644 --- a/presto/README.md +++ b/presto/README.md @@ -1,6 +1,6 @@ # Presto Music Library - Records On This Day -A MicroPython application for the [Pimoroni Presto](https://shop.pimoroni.com/products/presto?variant=54894104019323) (RP2350B, 720×720 touch display, WiFi) that connects to the Music Library API and lets you browse your record collection by release date. +A MicroPython application for the [Pimoroni Presto](https://shop.pimoroni.com/products/presto?variant=54894104019323) (RP2350B, 480×480 touch display, WiFi) that connects to the Music Library API and lets you browse your record collection by release date. ## Features @@ -21,6 +21,9 @@ A MicroPython application for the [Pimoroni Presto](https://shop.pimoroni.com/pr - WiFi network with internet access - A valid API token for the Music Library API +The app initialises Presto with `full_res=True`, so all layout and touch coordinates +use the display's full 480×480 pixel coordinate system. + ## Setup ### 1. Create secrets.py diff --git a/presto/main.py b/presto/main.py index e9a5a2a5..5650a922 100644 --- a/presto/main.py +++ b/presto/main.py @@ -1,7 +1,7 @@ """ Presto Music Library =================================================== -A MicroPython application for the Pimoroni Presto (RP2350B, 720x720 touch +A MicroPython application for the Pimoroni Presto (RP2350B, 480x480 touch display, WiFi) that connects to the Music Library API and lets you: - browse records by release date - search records in the collection @@ -53,8 +53,8 @@ except ImportError: # API endpoint (production server) API_BASE = "https://music-library.claudio-ortolina.org" -# Setup for the Presto display -presto = Presto() +# Setup for the Presto display in full-resolution 480x480 mode. +presto = Presto(full_res=True) display = presto.display WIDTH, HEIGHT = display.get_bounds() touch = presto.touch diff --git a/presto/poc.py b/presto/poc.py index 1e469b0f..6e951eb4 100644 --- a/presto/poc.py +++ b/presto/poc.py @@ -17,7 +17,7 @@ from presto import Presto # HARDWARE # ============================================================================ -presto = Presto() +presto = Presto(full_res=True) display = presto.display touch = presto.touch WIDTH, HEIGHT = display.get_bounds()