CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

uOLED-128 and sending BMP

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
acidice333



Joined: 14 Oct 2006
Posts: 33

View user's profile Send private message

uOLED-128 and sending BMP
PostPosted: Sat Oct 31, 2009 4:38 am     Reply with quote

Trying to output a 256 color BMP converted over by using bmp2c but my problem is, when outputted to the LCD the image is off by 180? degrees and mirrored.

I can fix it by rotating and flipping the image before hand but I'd like a perm fix but I don't know how to do it?

Code:

putc(0x40); // send 'I' command
putc(0);
putc(0);
putc(128);
putc(128);
putc(0x08); //  256color mode, 8bits/1byte per pixel

for(i=0; i<16384; i++)
   putc(rawData1[i]);
}



Here is the rawData1 ...
http://pastebin.com/f3b16afe6
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Sat Oct 31, 2009 9:15 am     Reply with quote

Code:

for(i=16384; i>0; i++)
   putc(rawData1[i-1]);
}


Is that a quick fix? Or doesn't it flip the image properly?
Guest








PostPosted: Sat Oct 31, 2009 3:28 pm     Reply with quote

No, my quick fix is to use an image editor and flip and rotate the image then run it thru bmp2c. It is a hassle to do that everytime I edit the image and save it.

John P wrote:
Code:

for(i=16384; i>0; i++)
   putc(rawData1[i-1]);
}

Is that a quick fix? Or doesn't it flip the image properly?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group