[presto] fix resolution (480x480, hi-res)
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user