View previous topic :: View next topic |
Author |
Message |
berel
Joined: 20 Oct 2011 Posts: 15
|
|
Posted: Wed Jun 24, 2020 10:07 am |
|
|
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: 183 Location: Warrington UK
|
|
Posted: Mon Jun 07, 2021 9:38 am |
|
|
@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: 17981
|
|
Posted: Wed Jun 09, 2021 6:07 am |
|
|
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: 183 Location: Warrington UK
|
|
Posted: Sun Jun 13, 2021 8:52 am |
|
|
@Ttelmah
That fixed it, thank you. |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 17981
|
|
Posted: Mon Jun 14, 2021 11:02 pm |
|
|
Goodly.
Have fun |
|
 |
blowtorch
Joined: 11 Jun 2013 Posts: 35 Location: Cape Town
|
128 x 32 changes |
Posted: Fri Aug 27, 2021 12:49 pm |
|
|
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
|
ssd1309 library code |
Posted: Tue Sep 21, 2021 12:12 am |
|
|
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.  |
Can you please share the SSD 1309 display code |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 17981
|
|
Posted: Thu Sep 23, 2021 5:03 am |
|
|
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. |
|
 |
|