Comments (3)
Duplicate of #16 ?
from pico-playground.
Seems like OP fixed it, but didn't provide much detail on how. I tried the script he mentioned and did not have any luck.
from pico-playground.
Just in case anyone else finds this, here are some tips if you want to use the packfiles script:
- Make sure your image is the right size. For sprite_demo, make it 128x128 OR edit the
berry[i].log_size = 7
line to be whatever power of 2 you want your images to be. - If your image has transparency, use
python packtiles.py -sdmf bgar5515 INPUT.png OUTPUT.h
. Note the.h
on the output. The flags are important:s
makes a single image, andm
adds transparency metadata. If your image does NOT have transparency, remove them
flag.d
is not so important but makes your image look nice. - If your image does NOT have transparency, you need to change
berry[i].has_opacity_metadata = false;
. Otherwise, the code will read part of your image as a mask. :) - Edit the produced
.h
file to have the name you want and edit the imports in the main file.
Good luck!
from pico-playground.
Related Issues (20)
- USB Sound Card ceases function after some time of use HOT 3
- flash_stream
- Feature request
- audio/sine_wave/CMakeLists.txt wrong I2S pins HOT 3
- usb_sound_card.c - line 290 "todo lie thru our teeth for now"
- LVGL for scanline generation HOT 1
- How to use vga_mode_tft_800x480_50 mode? HOT 4
- Sprite composition in ram, from flash. HOT 1
- TURBO_BOOST breaks vga color HOT 2
- Flash stream example producing messed color results HOT 5
- How to properly include tinyusb in the examples
- How to add usb printf to flash-stream dma example? HOT 5
- Update USB Sound Card Example to use TinyUSB instead of LUFA HOT 1
- VGA Connection Pinout in the scanvideo/ directory seems incorrect HOT 2
- sine_wave using interpolator
- Not much going on here - dead project?
- Issue with usb sound card at higher sample rates HOT 1
- `build` folder is not being ignored
- Not able to build repository - `Unknown CMake command Include build folder as part of .gitignore` HOT 1
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 pico-playground.