Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 08:16:43 08:16


Login with username, password and session length


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

Posts: 101

Thank You
-Given: 336
-Receive: 12


« on: January 21, 2013, 03:27:12 15: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: 81

Thank You
-Given: 7
-Receive: 17


« Reply #1 on: January 21, 2013, 04:05:21 16: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
**
Offline Offline

Posts: 89

Thank You
-Given: 101
-Receive: 26


« Reply #2 on: January 21, 2013, 10:12:44 22: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: 18

Thank You
-Given: 10
-Receive: 10


« Reply #3 on: February 06, 2013, 08:49:51 20: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