ST7735 display and picture and pictures #1064
Replies: 12 comments
-
Posted at 2021-01-20 by AkosLukacs Hi, I guess http://www.espruino.com/Graphics would be a good start, there is some info at Images / Bitmaps chapter. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by @gfwilliams As above - there are tools for converting images (the IDE has one built in if you try to upload an image to storage). Since the https://www.espruino.com/ST7735 driver is paletted I'd suggest setting it up with a 4 bit ('mac') palette, and then you can convert all your images to that using the image converter. Another option is to save the image as a paletted image string, then modify the ST7736 driver to blit the image right out using the image's own palette - that'd be pretty quick but is a lot more advanced. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp thaks @AkosLukacs,
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp Hello, i'm graphic designer and a 4bit mac paletted image is not optimised for displaying grayscale image as this palette contain only 4 grayscale levels... sad... i've tried to optimized with a generic 2bit-grayscale palette with photoshop([#000000,#676767,#b6b6b6,#ffffff]) from https://lospec.com/palette-list/2-bit-grayscale if i use your tool the palette does not match and the tool rebuild the paletted image and loose 1 color pix even in flat mode. how can i manage to encode the image as is? regards |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp well i build a MAC16 palette in photoshop as your script does (the online tool) Now on my screen, the color does not match. oh and i use your palette as the ref palette.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp it seems there is a rgb to bgr inversion... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp well i do not understand wich format can be used to directly loadImage from storage as in exemple! i have to admit, i'm a beat confuse. sorry
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp if i use a 2 colors palette on the display #0000FF = yellow what's wrong with the color? any advices regards |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp ok i've found the palette issue...
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-21 by @gfwilliams Great - glad you got it sorted! You may also find that 'optimal 4 bit palette' will work well for you, but then the palette will change for each image. For your use case, are you thinking that having a '4 bit greyscale' option would be better for you? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-23 by Mrbbp Hello @gordon, sorry for late answer, have to test more to give feedback. The optimal 4bits palette does not works.... the display seems to use only the 16MAC Palette even if i iniate with the palette generated by online converter tools. regards. any help would help. é. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-25 by @gfwilliams Maybe you could try just setting up the display without images and trying out some colours to make sure it's working right. Looking at what you said above:
My guess is the screen's colour format is 16 bit BGR565 ( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-20 by Mrbbp
Hello,
i 've got a small 128x128 ST7735 display, i'm able to drawString on it. happy of that.
i'll be curious to display picture on the small screen.
how to create an arrayBuffer with a bitmap picture?
is there a tool to create and compact the picture in base64 or anything else to store the picture in the espruino?
is there a way to display with a descent framerate? more than 1 picture every 2sec....
sorry for that basic question, for sure the espruino is not designed to play video, but let me hope of that...
regards
éric
Beta Was this translation helpful? Give feedback.
All reactions