Designer_Electronics
Newbie level 5
Dear sir,
Iam designing with MikroC Program a simple project, i want to write the image to eeprom, i do it successfully , then to load many images from eeprom 24lc512 to pic18f4620 then display it to the graphical lcd.
i display an image to GLCD successfully , but when i write the program to load from eeprom to display on GLCD , it gives me a warning of
"Implicit conversion of int to ptr glcd.c ".
Any advise ,
program
======
// Global Variables
unsigned char image1[1024];
unsigned char image2[1024];
unsigned char image3[1024];
unsigned char x;
unsigned int ii;
void main(){
// Configure AN pins as digital I/O
ADCON1 = 0x00;
// Disable comparators
// CMCON =0x07;
// Graphical LCD initialization
Glcd_Init(); // Initialize GLCD
Glcd_Fill(0x00); // Clear GLCD
I2C1_Init(100000); // initialize I2C communication
// Read Function
for(ii = 0; ii < 1024; ii++) { // Read 1024 bytes block from address 0x00
x = EEPROM_get(ii); // store image // my i2c function
image1[ii]=x;
Delay_ms(50);
}
while(1){
Glcd_Image(image1[1024]); // Draw image1
}
}
Iam designing with MikroC Program a simple project, i want to write the image to eeprom, i do it successfully , then to load many images from eeprom 24lc512 to pic18f4620 then display it to the graphical lcd.
i display an image to GLCD successfully , but when i write the program to load from eeprom to display on GLCD , it gives me a warning of
"Implicit conversion of int to ptr glcd.c ".
Any advise ,
program
======
// Global Variables
unsigned char image1[1024];
unsigned char image2[1024];
unsigned char image3[1024];
unsigned char x;
unsigned int ii;
void main(){
// Configure AN pins as digital I/O
ADCON1 = 0x00;
// Disable comparators
// CMCON =0x07;
// Graphical LCD initialization
Glcd_Init(); // Initialize GLCD
Glcd_Fill(0x00); // Clear GLCD
I2C1_Init(100000); // initialize I2C communication
// Read Function
for(ii = 0; ii < 1024; ii++) { // Read 1024 bytes block from address 0x00
x = EEPROM_get(ii); // store image // my i2c function
image1[ii]=x;
Delay_ms(50);
}
while(1){
Glcd_Image(image1[1024]); // Draw image1
}
}