Comments (2)
isnt there a way to take a copy of a number of pixels and then draw that copy over another area? i think maybe something like when we get to the last line we copy everything but the first line, and paste it over where the first line would be... maybe give the appearance of scrolling.
something to do with READGRAM()
check this code from MCUFRIEND / graphicstest.ino
void windowScroll(int16_t x, int16_t y, int16_t wid, int16_t ht, int16_t dx, int16_t dy, uint16_t *buf)
{
if (dx) for (int16_t row = 0; row < ht; row++) {
READGRAM(x, y + row, buf, wid, 1);
tft.setAddrWindow(x, y + row, x + wid - 1, y + row);
tft.pushColors(buf + dx, wid - dx, 1);
tft.pushColors(buf + 0, dx, 0);
}
if (dy) for (int16_t col = 0; col < wid; col++) {
READGRAM(x + col, y, buf, 1, ht);
tft.setAddrWindow(x + col, y, x + col, y + ht - 1);
tft.pushColors(buf + dy, ht - dy, 1);
tft.pushColors(buf + 0, dy, 0);
}
}
from arduinostuff.
from arduinostuff.
Related Issues (20)
- Strobe not working in individual strip mode HOT 8
- Nmans List of shit to do
- Godot app changes HOT 1
- Delay in individual strip mode HOT 25
- UDP messages garbled HOT 1
- Draw shape functions draw directly to matrix. HOT 1
- Mirror mode HOT 1
- pattern issues. HOT 1
- Implement changes to logic made in I2CtoMatrix to I2cToFastLEDs HOT 1
- further minor timing changes.
- kick, snare, highhat HOT 1
- User defined palette HOT 2
- Visibility of additional strobe variables to parser.
- potential problem with memory overflow of TxtAncs. HOT 2
- Keeping track of minor tweeks for I2CToFastLEDs HOT 3
- Overhaul HOT 3
- Individual strip mode not working as intended HOT 12
- Rainbow not animated on strips
- Cant switch out of pallette mode HOT 4
- EEPROM fuckery
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 arduinostuff.