Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash stream example producing messed color results #34

Closed
sandric opened this issue Dec 1, 2022 · 5 comments
Closed

Flash stream example producing messed color results #34

sandric opened this issue Dec 1, 2022 · 5 comments

Comments

@sandric
Copy link

sandric commented Dec 1, 2022

I'm new to pico and failing to understand why I'm getting messed up image rendering with flash_stream example in scanline directory. Steps to reproduce screenshots I get:

  1. run ./pack.sh in img directory - it will produce 3 bin files and cat them into one pack.bin
  2. run sudo picotool load pack.bin -o 1003c000 to upload pack.bin into pico. The original command uses uf2conv -f pico -b 0x1003c000 pack.bin -o pack.uf2 - but I don't know what uf2conv is and where to find it, so as this person on raspberry forum, and I took his suggested command with picotool - uf2conv thread
  3. build flash_stream.uf2 and drag it into pico folder with file manager

Having done those I see such strange result, I know little about image processing and what exactly wrong with those:
IMG_20221201_200548
IMG_20221201_200552

I tried this on two different monitors, one big 24 inch monitor, and one small 7 inch 40 pin ttl monitor through the scaler - the result is equal.

Running demo1 example with floating raspberry on a blue background works without any issue, so I doubt its a wiring problem.

I also tried to change packing command a bit - e.g. changing format and removing d in ./packtiles -sdf bgar5515 Voss_by_fortuneblues.png voss.bin , it changes some things but colors are still messed.

@barbiani
Copy link

barbiani commented Dec 7, 2022

Have a look at #32

Also be sure that your image file has the exact resolution.

@sandric
Copy link
Author

sandric commented Dec 8, 2022

@barbiani I tried applying this pr after I saw it - it didn't change anything. As for resolution of images, I have 2 screens as I said - one is small 7'', and I believe its maximum resolution is 1024x600, which is not exist as replacement for #define VGA_MODE vga_mode_640x480_60 line. There is closer vga_mode_tft_800x480_50 mode - but I got the same compilation issue as described here. I tried to prevail the same aspect ratio by making images 640x375 pixels - but they just appeared cut, but same bug with wrong colors prevailed.

So I'm not sure what should I do at this point.

@barbiani
Copy link

barbiani commented Dec 8, 2022 via email

@sandric
Copy link
Author

sandric commented Dec 8, 2022

@sandric
Copy link
Author

sandric commented Dec 14, 2022

Ok, I finally found the error - I simply connected all DAC resistors upside down, so that 500 Ohm was gpio0, etc.. Sorry, issue resolved.

@sandric sandric closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants