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.

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Thu Mar 12, 2020 5:29 pm

Thanks. That also totally checks out on our end. That is - it works. Using your lib folder and BMP, they render OK.

Can you post a photo of the backside of the CLUE so we can look for any obvious hardware issue.

Also, let's try a filesystem reset and see if that does anything. This will erase all the files on the CLUE, so make sure to have local copies of the your code and BMPs. Then, run this:
Code: Select all | TOGGLE FULL SIZE
import storage
storage.erase_filesystem()

The board will reset and you'll need to copy the libs, code, and BMP back over. The CircuitPython firmware will still be there though, so doesn't need to be reinstalled.

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

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Thu Mar 12, 2020 8:30 pm

Here's a picture of the back, anything look amiss?

clue-board-back.jpg
Back of new CLUE board
clue-board-back.jpg (713.41 KiB) Viewed 137 times


I ran storage.erase_filesystem(), which blew away everything and caused reboots and stuff on screen including "Hello world!" I think, then recopied files over etc. Same results, images still fail.

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

Re: Bad TFT / washed-out BMPs on CLUE

by kevinjwalters on Fri Mar 13, 2020 8:35 am

I recreated the bmp with another program taking it via an intermediate format that's ultra-simple and has nothing other than the r,g,b values in case there's any "weirdness" in there. Try the attached file inside zip just to see if it exhibits the same issue.

Code: Select all | TOGGLE FULL SIZE
$ convert 001.bmp 001.ppm
$ convert 001.ppm 001-im.bmp
$ identify -verbose 001.bmp > 001.bmp.identify.verbose.txt
$ identify -verbose 001-im.bmp > 001-im.bmp.identify.verbose.txt

$ diff -I 'date:' -I 'filename:' 001.bmp.identify.verbose.txt 001-im.bmp.identify.verbose.txt
1c1
< Image: 001.bmp
---
> Image: 001-im.bmp
5,6c5,6
<   Resolution: 28.35x28.35
<   Print size: 8.46561x8.46561
---
>   Resolution: 28.34x28.34
>   Print size: 8.4686x8.4686
47d46
<   Gamma: 0.454545
49,51c48,50
<     red primary: (0.64,0.33)
<     green primary: (0.3,0.6)
<     blue primary: (0.15,0.06)
---
>     red primary: (0.0101539,0.0052356)
>     green primary: (0.00475436,0.00950872)
>     blue primary: (0.00235147,0.000940586)


Looking at the raw bmp ImageMagick produces there it appears to have a larger header so this probably won't help...
Attachments
001-im.zip
zip file with 001.bmp re-created from rgb data only by ImageMagick
(35.26 KiB) Downloaded 1 time

kevinjwalters
 
Posts: 764
Joined: Sun Oct 01, 2017 3:15 pm

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit_support_carter on Fri Mar 13, 2020 11:49 am

@tlpada If you are getting tired of this testing, let us know. We'll replace the board. But if you're up for it, I'm thinking as a next step:

The tests that have worked so far have all been Arduino based. Those UF2 files you can just drag over. The CircuitPython tests have all focuses on the BMPs. Let's try a more basic CircuitPython based color test.

Here's a version of the basic color rectangle test written in CircuitPython:
Code: Select all | TOGGLE FULL SIZE
import displayio
from adafruit_clue import clue
from adafruit_display_shapes.rect import Rect

splash = displayio.Group(max_size=10)
clue.display.show(splash)

splash.append(Rect(  0,   0, 80, 120, fill=0xFF0000))
splash.append(Rect( 80,   0, 80, 120, fill=0x00FF00))
splash.append(Rect(160,   0, 80, 120, fill=0x0000FF))
splash.append(Rect(  0, 120, 80, 120, fill=0xFFFF00))
splash.append(Rect( 80, 120, 80, 120, fill=0xFF00FF))
splash.append(Rect(160, 120, 80, 120, fill=0x00FFFF))

while True:
    pass


Does that produce same results as the previous test with the UF2? Note that you'll need to install the shapes library:
https://github.com/adafruit/Adafruit_Ci ... lay_Shapes

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

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Fri Mar 13, 2020 12:15 pm

Thanks, at some point yes seems we should call it, and I think it might be more efficient for you guys to look at it in your shop to better figure it out and send a new one in the meantime. But I do want to help with collective effort to alpha test this new product, which otherwise seems great, so... will try more but if no new progress yes please if we could just replace it then.

I ran the test from the previous post, the altered bmp. Same failed rendering. There are a faint blue and yellow lines but otherwise it's completely washed out with faint white silhouette of the banana:

001-im.bmp.jpg
shot of CLUE board rendering 001.bmp re-created from rgb data only by ImageMagick
001-im.bmp.jpg (604.04 KiB) Viewed 121 times


I also tried the new RGB rectangle test... look like it renders it fine / the same as the earlier test:

new-rectangle-test.jpg
shot of CLUE board rendering RGB rectangle test
new-rectangle-test.jpg (540.24 KiB) Viewed 121 times


thanks

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

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit2 on Fri Mar 13, 2020 2:42 pm

ok what if you just have the default REPL up on the board, e.g. no display stuff at all?

adafruit2
Site Admin
 
Posts: 19398
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Fri Mar 13, 2020 3:08 pm

Sorry I don't have MU editor with serial mode here at work on my pc, and/so not sure what you mean by 'the default REPL up on the board'?

If just print text data to the screen, it seems fine (as do the other various messages that come up on the screen when code is loading or rebooting etc.).

Editing code.py to this, for example, renders the screen below correctly.

Code: Select all | TOGGLE FULL SIZE
from adafruit_clue import clue

clue_data = clue.simple_text_display(title="Hello world", title_scale=2)

while True:
   clue_data.show()


print-screen.jpg
hello world text data to screen
print-screen.jpg (489.79 KiB) Viewed 113 times

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

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit2 on Fri Mar 13, 2020 3:15 pm

the TFT seems fine...which makes me think that there's some BMP corruption. i know it isnt terribly helpful :/

adafruit2
Site Admin
 
Posts: 19398
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Fri Mar 13, 2020 3:20 pm

If there's no more ideas, could we please just go ahead and send me a replacement board as kindly mentioned above? (seems like we've tried everything but getting diminishing returns, happy to do more tests but need something that works for my kids to work with for other stuff).

Thanks.

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

Re: Bad TFT / washed-out BMPs on CLUE

by adafruit2 on Fri Mar 13, 2020 3:49 pm

sure email support@adafruit with a link to this thread to get a new CLUE - if you are in the USA please also request "RMA FORPHIL" so we can test it

adafruit2
Site Admin
 
Posts: 19398
Joined: Fri Mar 11, 2005 7:36 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tannewt on Fri Mar 13, 2020 8:00 pm

To show just the REPL on the screen please only have this in code.py:
Code: Select all | TOGGLE FULL SIZE
print("hello world")


No need to import anything to do it. (The Blinka pixel graphic should be in the top left.)

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Re: Bad TFT / washed-out BMPs on CLUE

by kevinjwalters on Tue Apr 14, 2020 6:55 pm

This inspired me to make a test card. If you still have it and you're not bored of trying different bmps then give this a go, I'm curious what it looks like on your unfortunate CLUE. It's difficult to tell but I think there's something iffy about the hardware here, possibly the transmission to the screen.
Attachments
adafruit-testcard-a-240x240.zip
An unofficial testcard rendered at 240x240 in png, 16bit bmp and 24bit bmp formats
(82.78 KiB) Downloaded 4 times

kevinjwalters
 
Posts: 764
Joined: Sun Oct 01, 2017 3:15 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tlpada on Wed Apr 15, 2020 12:37 am

Hi, thanks for inquiring/trying. All 3 images are still 'washed out' (in the ladyada image part), albeit differently maybe (not sure I can tell the difference between them if any).

Here they are:

IMG_20200415_002351-c.jpg
image 1
IMG_20200415_002351-c.jpg (751.34 KiB) Viewed 42 times

IMG_20200415_002408-c.jpg
image 2
IMG_20200415_002408-c.jpg (787.64 KiB) Viewed 42 times

IMG_20200415_002425-c.jpg
image 3
IMG_20200415_002425-c.jpg (768.83 KiB) Viewed 42 times


Thanks

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

Re: Bad TFT / washed-out BMPs on CLUE

by kevinjwalters on Wed Apr 15, 2020 8:40 am

The image is far more useful than I expected, your mid-grey level looks like it's approximately 16 rather than 128!

I'd previously wondered about the data transmission but the data to the screen looks ok but it looks like there's a chronic brightness/contrast/gamma issue. There's a small chance there's something amiss with the software initialisation of the screen. I'll prod those in the know to check this.

Here's a picture of my CLUE which displays what I'd expect:

clue-black-alpha-k52-testcard-a-24bit.JPG
Testcard A 24bit bmp on my (black alpha) CLUE
clue-black-alpha-k52-testcard-a-24bit.JPG (895.66 KiB) Viewed 41 times


Here's the same 240x240 image with 3x non-interpolated scaling to visually preserve its pixels to compare it off the device:

adafruit-testcard-a-240x240.24.SCALED3X.png
Testcard A 24bit 240x240 but scaled to 720x720 with no interpolation
adafruit-testcard-a-240x240.24.SCALED3X.png (44.24 KiB) Viewed 41 times

kevinjwalters
 
Posts: 764
Joined: Sun Oct 01, 2017 3:15 pm

Re: Bad TFT / washed-out BMPs on CLUE

by tannewt on Wed Apr 15, 2020 3:49 pm

Very cool Kevin! There are definitely gamma related registers that could be tweaked. Not sure where to start though.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.