Comments (4)
My personal opinion is we should allocate a buffer the size of the internal display buffer, which is bigger than the screen size. We want to be able to load images the size of the internal buffer for scrolling graphics.
from tidal-firmware.
Normally I'd agree but I can't see any way to use the st7789 APIs to achieve offscreen drawing followed by scrolling it onscreen. I haven't found a way to use vscsad()
to permit anything other than "rolling scroll", where you're still displaying exactly the same 135x240 pixels, just wrapped around the screen with a variable offset (which is what the emflogo
app does). The buffer that buffer_size controls is only used as an intermediate and I don't think you can use it as an offscreen bitmap.
Happy to be proved wrong though, I'd definitely like to do some fancier scrolling effects!
from tidal-firmware.
This is a limitation of the library, not the hardware. You're allowed to write to any part of the display buffer, in any direction (!) with any stride length you want, and you can set the display window to anything you like, and also change the display window between frames without changing the buffer contents.
from tidal-firmware.
To clarify further, you can't do these fancy things with the builtin scrolling functionality, which works exactly as you describe, so doing those fancy things requires animating the display window manually
from tidal-firmware.
Related Issues (20)
- GUI framework HOT 2
- Add "Erase storage" option to recovery menu HOT 1
- Sponsor app HOT 2
- Add flashing support to torch app HOT 3
- Wi-Fi connections not working on production hardware HOT 1
- Integrate console menu and helpers from badge.team
- freeze umqtt
- Step counter app HOT 1
- tidal_helpers.usb_connected() returns True even after USB is disconnected HOT 1
- Duck facts app HOT 2
- Add magnetometer API HOT 1
- The keyboard fails if text is multiline HOT 2
- Webserial console does not get debug output echoed to it
- USB HID descriptors identifying as mouse HOT 2
- MicroPython crashes when accessed using mpremote HOT 2
- Unable to connect to device via webserial on Ubuntu HOT 1
- No way to uninstall apps
- Docker commands don't work with SELinux
- license problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidal-firmware.