I am trying to make a short "video" for my sansa clip v2.
I have a .c file with tons of rb->lcd_drawpixel() calls. (about 128*64 pixels * hundreds of frames)
The .c file itself is 2 megabytes.
When I type "make" from the build folder, it says "out of memory allocating 547340640 bytes after a total of 496640000 bytes". Please tell me how to fix this.
Someone told me I should use a data file and that I couldn't have so much stuff in a .c or .h file.
Is he right?
How do I make a data file? Can I google that question or is there some special rockbox format for that?
How do I read the data?
Do I have to use this?:
int read(int fildes, void *buf, size_t nbyte);
The read() function attempts to read nbyte bytes from the file associated
with the open file descriptor, fildes, into the buffer pointed to by buf.
I'm a C and Linux beginner. How do I learn these things? Google? I don't understand the function parameters.
rb->lcd_clear_display();rb->lcd_drawpixel(104,22);rb->lcd_drawpixel(104,23);rb->lcd_drawpixel(104,24);rb->lcd_drawpixel(104,25);
rb->lcd_drawpixel(104,58);rb->lcd_drawpixel(104,59);rb->lcd_drawpixel(104,60);rb->lcd_update();rb->sleep(sleeptime);
/* Then theres a million more of the above*/
Thanks for helping.