The ssd1306 is an oled screen Op woensdag 17 augustus 2022 om 22:30:30 UTC+2 schreef [email protected]:
> Are you able to get anything on the screen? What type of screen is it? > > Matt. > > On Wednesday, August 17, 2022 at 4:24:19 PM UTC-4 [email protected] wrote: > >> Hi Rob and Matt >> >> Hoi Rob. I knew wat you wrote to format data for a screen of ssd1306. I >> did not send my program because I have no problem with my program. In the >> beginning I wrote that I dont know how to get the data from the sd and sent >> it to screen. >> In the samples of Matt I see the possebility of byte by byte or a buffer >> of a whole segment of 512 byte. >> And then sending it serial. But I want to send it to the screen and I >> don't know how to do this. >> Must I send it byte for byte or buffer for buffer. So my question is: >> what is the code to get the data from the sd and on the screen. >> Greetings Peter >> Op woensdag 17 augustus 2022 om 18:57:30 UTC+2 schreef [email protected] >> : >> >>> 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]. >>> 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/d9b8b493-69a3-456a-b49d-91d8389cec73n%40googlegroups.com.
