aakashjsr
Newbie level 3
- Joined
- Apr 16, 2014
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 38
Hi,
I have interfaced 128x84 GLCD with Atmega16 and written a function that displays an image on the glcd.Basically the image is defined by an array of size 1024(128x64) which has pixel wise definition for an image. This function is working perfectly fine for one image but when I try to display 2 images one after other with a delay , the second image is completely distorted . Consider that image 1 is defined in pic1.c and image 2 is defined in pic2.c
if I import pic1.c before pic2.c then image 1 is good and image 2 is distorted and if I import pic2.c before pic1.c then image 2 is good and image 1 is distorted. I mean for
#include "pic1.c"
#include "pic2.c"
..
show_img() -----> pic1 is working but not pic2
where as for
#include "pic2.c"
#include "pic1.c"
..
show_img() -----> pic2 is working but not pic1
I have interfaced 128x84 GLCD with Atmega16 and written a function that displays an image on the glcd.Basically the image is defined by an array of size 1024(128x64) which has pixel wise definition for an image. This function is working perfectly fine for one image but when I try to display 2 images one after other with a delay , the second image is completely distorted . Consider that image 1 is defined in pic1.c and image 2 is defined in pic2.c
if I import pic1.c before pic2.c then image 1 is good and image 2 is distorted and if I import pic2.c before pic1.c then image 2 is good and image 1 is distorted. I mean for
#include "pic1.c"
#include "pic2.c"
..
show_img() -----> pic1 is working but not pic2
where as for
#include "pic2.c"
#include "pic1.c"
..
show_img() -----> pic2 is working but not pic1