Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Bad TFT / washed-out BMPs on CLUE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Bad TFT / washed-out BMPs on CLUE

by tlpada on Sat Mar 07, 2020 3:15 pm

The CLUE board I just received seems unable to display BMP files correctly.

When I try the CLUE Slideshow example, all 3 of the 'Blinka' BMPs are either partially or completely 'washed out'.
Blinka_240x240.bmp is completely washed out, Blinka_Love seems to have only one color present on a white/black background, and Blinka_Ouroboros is similarly a single color on a washed background.
Blinka_240x240.jpg
display of adafruit_products_Blinka_240x240.bmp
Blinka_240x240.jpg (573.59 KiB) Viewed 256 times

Blinka_Love.jpg
display of adafruit_products_Blinka_Love_240x240.bmp
Blinka_Love.jpg (560.08 KiB) Viewed 256 times


Standard 240x240 BMPs from Adafruit's library examples are also washed out, e.g. the 'banana', 'avocado', 'cherries', etc.
avocado-IMG_20200307_112326.jpg
avocado 240x240 bmp
avocado-IMG_20200307_112326.jpg (512.23 KiB) Viewed 256 times


I have other examples, all the 'fruit' and 'notification icon' BMPs are similarly entirely washed out or only bi-color or tri-color seeming.

Everything else about the CLUE board seems to work however.

Could the TFT be bad or something else?

Thanks

Order #2266879-5982354693, ordered 2/28/20, received 3/4/20.

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Tue Mar 10, 2020 7:12 pm

Can you try running the test program from here:
https://learn.adafruit.com/adafruit-clue/arduino-test
and see if the TFT appears normal with that.

You don't need to use Arduino. Just download the UF2 file, put the CLUE in bootloader mode, and drag the UF2 file over.

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Tue Mar 10, 2020 9:27 pm

Ran test, looks normal AFAICT, attached. Pushing left and right buttons also made sound and light.

arduino-test.jpg
shot of CLUE running arduino test from bootloader mode
arduino-test.jpg (654.97 KiB) Viewed 224 times

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Wed Mar 11, 2020 2:02 pm

OK, that much at least looks normal.

You were following this guide?
https://learn.adafruit.com/adafruit-clue/clue-slideshow
How did you save the BMPs and copy them to your CLUE?

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Mar 11, 2020 3:06 pm

Yes, I downloaded and then copied over several BMPs -- first the 'Blinka' BMPs from Adafruit's site, then the Adafruit 'fruits' library (banana, avocado, berries etc.), then the Adafruit notification icons ('basecamp', 'slack') -- on linux and then copied to CIRCUITPY mount (and also using mu-edit, moving them around). Same result for all. I also checked the image properties for each one, to see if there were any differences, that they were all 240x240 etc. I also confirmed problem still exists after trying this arduino test; reloaded circuitpython, TFT still bad.

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Wed Mar 11, 2020 4:46 pm

OK, let's try another color test independent of bitmaps files. Load this UF2 the same way as the other test:
clue_color_test.UF2
(142 KiB) Downloaded 5 times

Put the CLUE in bootloader mode and drag the UF2 file over. It's very simple, just prints colored rectangles on the screen, top row = red, green, blue, bottom row = cyan, yellow, magenta.

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Mar 11, 2020 7:45 pm

Done. Looks pretty right AFAICT. Still same problem, though, when I reloaded the circuitpython boot and ran "clue_slideshow.py".

clue-color-test.jpg
running clue color test
clue-color-test.jpg (570.8 KiB) Viewed 194 times
Last edited by tlpada on Wed Mar 11, 2020 7:53 pm, edited 1 time in total.

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Wed Mar 11, 2020 7:50 pm

Thanks for running that test. Agree, the display looks like it's working OK. So it seems like something is potentially mangling the BMP files somehow. CircuitPython is currently fairly limited in the BMP file formats it can support. Your PC can support many more, so can be tricky to verify the BMPs on the PC side.

It sounds like you are using linux on your PC?

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Mar 11, 2020 8:00 pm

Yes, using linux on the PC side.

Wouldn't 'sum' hashes on the files confirm that they're identical to those downloaded from Adafruit?

Here are sums I have on the Adafruit files I used:

$ sum *bmp
37747 113 adafruit_products_Blinka_240x240.bmp
48295 169 adafruit_products_Blinka_Love_240x240.bmp
24274 169 adafruit_products_Blinka_Ouroboros_240x240.bmp
65504 113 graphic_tfts_ancs_basecamp.bmp
27064 113 graphic_tfts_ancs_slack.bmp
64768 169 001.bmp
04926 169 002.bmp
60557 169 003.bmp
41417 169 004.bmp
02179 169 005.bmp
02839 169 006.bmp

And then, here are the sums of the same images sitting on the CIRCUITPY 'filesystem' (albeit, it's still linux OS calculating the sums):

[tlp@localhost CIRCUITPY]$ sum *bmp
37747 113 adafruit_products_Blinka_240x240.bmp
48295 169 adafruit_products_Blinka_Love_240x240.bmp
24274 169 adafruit_products_Blinka_Ouroboros_240x240.bmp
65504 113 graphic_tfts_ancs_basecamp.bmp
27064 113 graphic_tfts_ancs_slack.bmp
64768 169 001.bmp
04926 169 002.bmp
60557 169 003.bmp
41417 169 004.bmp
02179 169 005.bmp
02839 169 006.bmp


Also, FWIW, I also tried my own custom images -- regular photographs that I used GIMP to scale down to 240x240 BMPs. Exact same result -- washed out and/or monochrome images. They almost looked like 'negatives', so I also tried reversing the images. Same result.

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Wed Mar 11, 2020 8:30 pm

Try wget'ing them:
Code: Select all | TOGGLE FULL SIZE
wget https://cdn-learn.adafruit.com/assets/assets/000/088/500/original/adafruit_products_Blinka_240x240.bmp
wget https://cdn-learn.adafruit.com/assets/assets/000/088/501/original/adafruit_products_Blinka_Love_240x240.bmp
wget https://cdn-learn.adafruit.com/assets/assets/000/088/502/original/adafruit_products_Blinka_Ouroboros_240x240.bmp


I'm getting some slightly different results from sum:
Code: Select all | TOGGLE FULL SIZE
$ sum *bmp
37747   113 adafruit_products_Blinka_240x240.bmp
11518   113 adafruit_products_Blinka_Love_240x240.bmp
51754   113 adafruit_products_Blinka_Ouroboros_240x240.bmp

I just tested all those BMPs and they ran fine on a CLUE with slideshow.

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Mar 11, 2020 8:44 pm

Interesting, when I wget them, I get the sums that you show. And YET... running clue_sideshow.py again on them... it's the same broken result. 'Love' and 'Ouroboros' are monochrome (barely, faint purple on white), and the main 'Blinka_240x240' is completely washed out. In other words, same result on the TFT, exactly, as with the BMPs I used. This kind of makes sense, I think, as it seems that 'any' BMP fails, regardless if I had a different version of the adafruit ones; because it happens to every/any/random BMP I created and/or tested.

[tlp@localhost CIRCUITPY]$ pwd
/run/media/tlp/CIRCUITPY
[tlp@localhost CIRCUITPY]$ wget https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
--2020-03-11 20:32:38-- https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
Resolving cdn-learn.adafruit.com (cdn-learn.adafruit.com)... 104.20.39.240, 104.20.38.240, 2606:4700:10::6814:26f0, ...
Connecting to cdn-learn.adafruit.com (cdn-learn.adafruit.com)|104.20.39.240|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 115256 (113K) [image/bmp]
Saving to: ‘adafruit_products_Blinka_240x240.bmp’

adafruit_products_Blinka_240x240.bmp 100%[====================================================================>] 112.55K --.-KB/s in 0.07s

2020-03-11 20:32:41 (1.53 MB/s) - ‘adafruit_products_Blinka_240x240.bmp’ saved [115256/115256]

[tlp@localhost CIRCUITPY]$ wget https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
--2020-03-11 20:32:51-- https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
Resolving cdn-learn.adafruit.com (cdn-learn.adafruit.com)... 104.20.38.240, 104.20.39.240, 2606:4700:10::6814:27f0, ...
Connecting to cdn-learn.adafruit.com (cdn-learn.adafruit.com)|104.20.38.240|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 115256 (113K) [image/bmp]
Saving to: ‘adafruit_products_Blinka_Love_240x240.bmp’

adafruit_products_Blinka_Love_240x24 100%[====================================================================>] 112.55K --.-KB/s in 0.07s

2020-03-11 20:32:53 (1.49 MB/s) - ‘adafruit_products_Blinka_Love_240x240.bmp’ saved [115256/115256]

[tlp@localhost CIRCUITPY]$ wget https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
--2020-03-11 20:33:01-- https://cdn-learn.adafruit.com/assets/a ... 40x240.bmp
Resolving cdn-learn.adafruit.com (cdn-learn.adafruit.com)... 104.20.39.240, 104.20.38.240, 2606:4700:10::6814:26f0, ...
Connecting to cdn-learn.adafruit.com (cdn-learn.adafruit.com)|104.20.39.240|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 115256 (113K) [image/bmp]
Saving to: ‘adafruit_products_Blinka_Ouroboros_240x240.bmp’

adafruit_products_Blinka_Ouroboros_2 100%[====================================================================>] 112.55K --.-KB/s in 0.08s

2020-03-11 20:33:03 (1.37 MB/s) - ‘adafruit_products_Blinka_Ouroboros_240x240.bmp’ saved [115256/115256]

[tlp@localhost CIRCUITPY]$ sum *bmp
37747 113 adafruit_products_Blinka_240x240.bmp
11518 113 adafruit_products_Blinka_Love_240x240.bmp
51754 113 adafruit_products_Blinka_Ouroboros_240x240.bmp

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Wed Mar 11, 2020 8:50 pm

Hmm. OK, try updating everything. Make sure you have latest firmware:
https://circuitpython.org/board/clue_nrf52840_express/
and libraries:
https://circuitpython.org/libraries

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Mar 11, 2020 9:40 pm

Done. Sadly same result with the images -- freshly WGET'd again. (I started by deleting *.* on the existing CLUE board, then remounting/overriding with fresh firmware, then the libraries, then the examples).

BTW, the firmware was the same version I was already using; I overwrote it nonetheless with a freshly downloaded copy ("adafruit-circuitpython-clue_nrf52840_express-en_US-5.0.0.uf2).

The only thing different than what I was running, is the bundle library version. Before, I was running "adafruit-circuitpython-bundle-5.x-mpy-20200306.zip." Now I downloaded "adafruit-circuitpython-bundle-5.x-mpy-20200311.zip" (311, I assume the date, is the only difference).

Do these directories and files look right? (these are from the new instance).

clue-root-directory.jpg
clue circuitpython root directory
clue-root-directory.jpg (89.27 KiB) Viewed 183 times


clue-lib-directory.jpg
clue circuitpython lib directory
clue-lib-directory.jpg (145.86 KiB) Viewed 183 times

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Thu Mar 12, 2020 12:47 pm

Really weird issue. In theory, we should both be running the same hardware and firmware. But we can't recreate the issue on this side.

Can you make a zip of your entire CIRCUITPY folder and attach it here. You'll need to change the filename extension to get around the filter. Can just make it .txt or something and we can rename here.

adafruit_support_carter
 
Posts: 17321
Joined: Tue Nov 29, 2016 2:45 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Thu Mar 12, 2020 4:54 pm

Ok thanks, here you go, attached.

I also added the 'fruits' BMPs that fail to render similarly, from https://cdn-learn.adafruit.com/assets/a ... 1565633564.
Attachments
CIRCUITPY.zip.txt
CLUE circuitpython image zip
(530.5 KiB) Downloaded 3 times

tlpada
 
Posts: 36
Joined: Thu Feb 27, 2020 2:38 pm

Please be positive and constructive with your questions and comments.