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 CCS Technical Support

OLED library

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



Joined: 25 Oct 2016
Posts: 62

View user's profile Send private message

OLED library
PostPosted: Tue Oct 25, 2016 10:39 am     Reply with quote

Hi;

I am having several issues whilst translating a library from Arduino to CCS. It turns out, i don't have an Arduino but I need to control my OLED display with a Microchip PIC (18F2685). I have tried several times but it hasn't worked. My OLED display uses an SSD1306.
Can someone translate this Arduino library or provide one for my OLED (128x64) in order to program the PIC?

Thanks Very Happy
link to access the code (.h file and .cpp file)
https://drive.google.com/open?id=0B1nvhELiTtpOUHhIdTVaY3N1SWc
Ttelmah



Joined: 11 Mar 2010
Posts: 19510

View user's profile Send private message

PostPosted: Tue Oct 25, 2016 11:43 am     Reply with quote

There are two routines in the code library.
One for 'full screen', suitable for PIC's with enough RAM to hold the whole screen, and one supporting text, and smaller graphics windows, using much less RAM.
jamalavedra



Joined: 25 Oct 2016
Posts: 62

View user's profile Send private message

OLED library
PostPosted: Tue Oct 25, 2016 5:00 pm     Reply with quote

Once I know whether my PIC has enough ram or not to hold it on full screen, how do I go from the code library of the Arduino to the library for the PIC? Any suggestions/examples?

Thanks
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Tue Oct 25, 2016 5:18 pm     Reply with quote

No, the code library here on this site. Search it for "SSD1306".

http://www.ccsinfo.com/forum/viewforum.php?f=2
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