We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: NART SCHINACKOW
Last Updated: 2014-01-05
Package Version: 1.0.0.0
Category: Other Codes
Downloaded: 1160 times
Not followed.
License: MIT license
An application developed in VISUAL C# 2010 EXPRESS EDITION, used for reading JPEG files and exporting them either to MMC hence readable through MIKROE FAT16 LIBRARY or exporting them to a 2d unsigned int C ARRAY.
NOTE: THIS APP IS USED WITH A NOKIA 6100 LCD 132x132 PIXELS.
Do you want to subscribe in order to receive notifications regarding "NOKIA 6100 LCD UTILITY" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "NOKIA 6100 LCD UTILITY" changes.
Do you want to report abuse regarding "NOKIA 6100 LCD UTILITY".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1334766955_nokia_6100_lcd_u_other_other.zip [925.83KB] | Other Compiler |
|
Their are two ways for displaying an image on the screen using this utility:
1) by exporting the image as a 2d array, hence using the built-in FUNCTION
GRAPHICS_DRAW_IMAGE
NOTE : The 2d array export is a C array.
2) by exporting the image as a byte FILE, using this way you must add the following code
void ReadFromFile(char* FILE_NAME)
{
char i,j,xx,yy;
unsigned long SIZE;
unsigned int FINAL_COLOR;
mmc_fat_assign(FILE_NAME,0);
mmc_fat_reset(&SIZE);
for(i=0;i<132;i++)
{
for(j=0;j<132;j++)
{
Mmc_Fat_Read(&xx);
Mmc_Fat_Read(&yy);
FINAL_COLOR=xx;
FINAL_COLOR=FINAL_COLOR<<8;
FINAL_COLOR=FINAL_COLOR|yy;
NOKIA_LCD_PIXEL(FINAL_COLOR,j,i);
}
}
}
The image below shows how your code must look like.