Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Read BMP image from SD-HC and show on lcd 3310/5110

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
rizzo

Bascom Member



Joined: 30 Oct 2014
Posts: 7

PostPosted: Tue Jun 01, 2021 9:28 pm    Post subject: Read BMP image from SD-HC and show on lcd 3310/5110 Reply with quote

Hello.

I using:

- Mrshilov NOKIA-3310/5110 B&W LCD library
- AVR-DOS with sd-hc suport
- Bascom 2.0.8.2


I need help with BMP image. My code read image and print in Hex format. Here I am stuck. Idk how this convert to bgf and send this to lcd?


My code finish here:

Code:

.....


Open "01.bmp" For Binary As #11


      For A = 1 To Lof(11)

         Get #11 , Btemp1
         
         Print Chr(btemp1) ; 'serial debug

      Next

Close #11

....


 


I wona make some animation in my project. Anyone help?
Back to top
View user's profile
rizzo

Bascom Member



Joined: 30 Oct 2014
Posts: 7

PostPosted: Fri Jun 04, 2021 10:05 pm    Post subject: Reply with quote

I have monocolor images 84x48... Any help...
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 320
Location: Japan

japan.gif
PostPosted: Sat Jun 05, 2021 3:22 am    Post subject: Reply with quote

Is it impossible to use Graphic Converter?
[Tools] -> [Graphic Converter]
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sat Jun 05, 2021 10:09 am    Post subject: picbin Reply with quote

folliwing the kind of display this program can help you, it give you a .bin copy of a bmp

it is attached
JP Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
rizzo

Bascom Member



Joined: 30 Oct 2014
Posts: 7

PostPosted: Mon Jun 07, 2021 4:05 pm    Post subject: Reply with quote

Yes. I know how convert image to raw format and than image put in code. But i dont have space in flash. I wona have images on SD card. I need formula for converting bmp image to raw and than send this to monocolor lcd...

Images are on sd -> Avr read image -> Avr convert to raw and send to LCD.
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Mon Jun 07, 2021 6:24 pm    Post subject: Reply with quote

but I did it with .bin in my clock [url] https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13096&highlight=astronomical[/url]

all my pictures are in a SDcard

if you use AVR-dos you nead 64k0 minimum of flash

to convert color image in BW you can use Paint.net

JP
Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
rizzo

Bascom Member



Joined: 30 Oct 2014
Posts: 7

PostPosted: Mon Jun 07, 2021 8:34 pm    Post subject: Reply with quote

Duval JP wrote:
but I did it with .bin in my clock [url] https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13096&highlight=astronomical[/url]

all my pictures are in a SDcard

if you use AVR-dos you nead 64k0 minimum of flash

to convert color image in BW you can use Paint.net

JP
Wink


Great project. I will check how you convert image in code and push to lcd.
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Tue Jun 08, 2021 2:11 pm    Post subject: Reply with quote

hi,
all of picture works are from H.Kipnik from the Bascom.de forum
againt he did a great job.

JP Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum