Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 08:47:34 08:47


Login with username, password and session length


Pages: [1]
Print
Author Topic: How to put a BMP in EEPROM 24lcXX  (Read 2047 times)
0 Members and 1 Guest are viewing this topic.
jose
Active Member
***
 Muted
Offline Offline

Posts: 102

Thank You
-Given: 298
-Receive: 12


« on: January 21, 2013, 04:27:12 16:27 »

Hello for alls.
I will like to work with GLCD. 
I working with the program bitmap2LCD and others, and this generate table of chars for the compilers CCs...
How can i to converter this  format file(chars)  to binari format (bin) , for  load to eeprom 24lcxx ?
Thanks and sorry for me bad Enghish.
Logged
flo0319
Junior Member
**
Offline Offline

Posts: 82

Thank You
-Given: 7
-Receive: 16


« Reply #1 on: January 21, 2013, 05:05:21 17:05 »

For first you need to understand what is a BMP file and what you need to put in EEPROM

A BMP file has a complex structure where are defined a lot of extra information about picture,

Your GLCD is monocolor or is RGB?

for monocolor you need to save just "0"/"1" information for each pixel, so, at any location you can save in your eeprom information about 8 pixels

for RGB you need to save 24 bits for each pixel so, you need to use 3 locations for your picture where any location tell you the value for R / G / B color

if you are familiar with matlab you can write a program(script) what can convert any picture in raw format

the eeprom memory is viewed like a unidimensional but your picture is bidimensionl, if you know rows and cols number you can save your picture line after line where pixel[5][6] form a picture 30X50 is eeprom[start_addres+5*50+6]   
Logged
gan_canny
Junior Member
**
 Warned
Offline Offline

Posts: 85

Thank You
-Given: 98
-Receive: 25


« Reply #2 on: January 21, 2013, 11:12:44 23:12 »

Assuming the issue is the storing of the a character image in eeprom. There are programs that will take an font with all its representations of characters into an array. Now a glcd has an aspect ratio pixels may not be square further a character within a font can have different sizes. Suppose a font was chosen so that a char occupies a block 8x8 pixels. Typically this is stored in the eeprom using 8 bytes with the font having extra to create a space between characters. Next an indexing scheme is required. Typically if the character encoding is ASCII then the ASCII value is used as an index and since each char now takes up 8 bytes a multiplication by 8 of the ASCII value would point to the starting address. EX 'A" is ascii base10(65) and the position 'A is to appear in the glcd is row y col x... then the eeprom is accessed at address 65x8 8 rows are written at col x.
Now the graphical representation of a character can vary greatly but for a small sized GLCD the controller is relatively simple compared to a Graphics processor so fonts sizes are often just multiples of a base font stored in the eeprom.
Logged
cranor
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 8
-Receive: 11


« Reply #3 on: February 06, 2013, 09:49:51 21:49 »

Hi,

Use 010Editor, copy the tab code, then in a new file, go to edit, paste from, paste from source code.


Enjoy
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC