Hi Matt, Peter,

Last year I updated some graphics libraries and added a draw image function. I 
also created some sample files and I did convert some jpeg images to something 
that can be displayed.I  did this for the Nokia 5110 and for the SSD1306 
display.  I added the info on how I created the data from the jpeg file to a 
format that the display understands to the sample files.  Below a copy of that 
from the sample file of the SSD1306:

-- Notes: A way to generate the image array from a png or jpg file:
--        *) Go to: http://javl.github.io/image2cpp/
--        *) Upload your png of jpg file
--        *) Canvas size: 128 x 64 or smaller, depending on your application
--        *) Background color: Black
--        *) Invert image colors: Yes (tick)
--        *) Scaling: scale to fit, keep proportions
--        *) Brightness: 128 or higher (what suits you best)
--        *) Code output format must be: Plain bytes
--        *) Draw mode must be: Vertical - 1 bit per pixel

So the picture data was in this case stored in program memory and showed on the 
display.

@peter. As Matt requested, can you send your program?

Thanks.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens Matthew Schinkel 
<[email protected]>
Verzonden: woensdag 17 augustus 2022 02:47
Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] SD card

Hi, please post your program so we can see what you have so far.

Does the sd card have fat32 on it?
What type of picture format is on the sd card?

I don't think anyone here has tried putting a .BMG .PNG or .JPG picture onto an 
lcd. If that is what your trying to do, you would have to understand the 
picture format. You may need to make your own picture format that can be easily 
put on the LCD.

Are you able to read and write to the sd card with jal?

Are you able to do basic things on the LCD like put a pixel, or draw a line?

In glcd_common.jal there is a function called glcd_draw_image(), but I don't 
know if your code can use that.

Thanks,
Matt.

On Tuesday, August 16, 2022 at 5:32:04 PM UTC-4 [email protected] wrote:
Hi Rob
Yes. The oled 1306 shows the picture with the data in the program.
Yes I can read and write to the SD card.
Yes I want to copy the data from the SD card instead of using data in the 
program.
I will use the same oled 1306.
Greetings
Peter
Op dinsdag 16 augustus 2022 om 18:51:47 UTC+2 schreef [email protected]:
Hoi Peter,

As to undestand your question better.

The oled is capable of showing a picture from data in the PIC.

So you have a PIC with an SD card and you can read the data from the SD card, 
right?

And you want to copy that data to the Oled display. Which display is that?

Can you give some more info?

Thanks.

Kind regards,

Rob



________________________________
Van: [email protected] <[email protected]> namens Zet Weeh 
<[email protected]>
Verzonden: dinsdag 16 augustus 2022 15:50
Aan: jallib <[email protected]>
Onderwerp: [jallib] SD card

Hi
Who can help me.
I have a picture on an oled. The data is in the jal-file.
I have a sd card working and I want to use it for the data of the picture.
How can I use the data on the sd card to get the picture on the oled?
I tried it making a buffer but I don't get it working.
Greetings,
Peter

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/9e53d353-dd52-44e1-9aa8-a87950953d91n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/9e53d353-dd52-44e1-9aa8-a87950953d91n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/604859cb-fd42-45e7-961f-9094a7eb7ce0n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/604859cb-fd42-45e7-961f-9094a7eb7ce0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB16378D0BCD51FB5041121AC6E66A9%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.

Reply via email to