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

SSD1306 driver for use with less RAM
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    CCS Forum Index -> Code Library
View previous topic :: View next topic  
Author Message
berel



Joined: 20 Oct 2011
Posts: 15

View user's profile Send private message

PostPosted: Wed Jun 24, 2020 10:07 am     Reply with quote

Hello Ttelmah,
thanks for adding additional explanations !!!
It makes fun using the OLEDS, even the small 128x32 one, also for debugging very helpful.
MikeW



Joined: 15 Sep 2003
Posts: 181
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Jun 07, 2021 9:38 am     Reply with quote

@Ttelmah

I tried the revised bargraph routine.
When ctr is =100, I still get a blank at the end.
Ttelmah



Joined: 11 Mar 2010
Posts: 17477

View user's profile Send private message

PostPosted: Wed Jun 09, 2021 6:07 am     Reply with quote

You realise that you need both the code change, and the alteration to the
font used?. The right hand closing character has to be changed to make it
work.
MikeW



Joined: 15 Sep 2003
Posts: 181
Location: Warrington UK

View user's profile Send private message

PostPosted: Sun Jun 13, 2021 8:52 am     Reply with quote

@Ttelmah

That fixed it, thank you.
Ttelmah



Joined: 11 Mar 2010
Posts: 17477

View user's profile Send private message

PostPosted: Mon Jun 14, 2021 11:02 pm     Reply with quote

Goodly. Very Happy

Have fun
blowtorch



Joined: 11 Jun 2013
Posts: 32
Location: Cape Town

View user's profile Send private message

128 x 32 changes
PostPosted: Fri Aug 27, 2021 12:49 pm     Reply with quote

Hi Ttelmah

Thank you for your great library - I have it working with a tiny 128 x 32 display. The changes required for this was to modify the value in the init_sequence for the command S_SETCOMPINS. This is command 0xDA. Change the value (next byte) from 0x12 to 0x02. If this is not done the vertical spacing is off.

And of course the define S_LCDHEIGHT should be changed to 32.

Thanks again for all your work and willingness to share.
hsogukpinar



Joined: 20 Sep 2021
Posts: 2

View user's profile Send private message Send e-mail

ssd1309 library code
PostPosted: Tue Sep 21, 2021 12:12 am     Reply with quote

Ttelmah wrote:
As an update, I've just been running this with the SSD1309 (gives larger displays like 2.4"), and it runs fine. Only thing that gave problems was I found these needed a reset signal to stay low for a little while after power was applied to work reliably (ended up using a capacitor on the RES line), for reliable operation. Because this takes time, I had to pause for longer at boot. With this done works well. Smile


Can you please share the SSD 1309 display code
Ttelmah



Joined: 11 Mar 2010
Posts: 17477

View user's profile Send private message

PostPosted: Thu Sep 23, 2021 5:03 am     Reply with quote

It is the same code.
Provided you have the SSD1309 wired for I2C comms, and with the caveat
about needing a reset to the chip (either a resistive/diode/capacitive reset
to the controller chip or another PIC line to operate the reset signal).
Obviously you need to pause at the start till the reset is done, and then
about another 20mSec.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> Code Library All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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