Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

OLED SSD1306 parallel mode library

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Sun Sep 27, 2015 12:14 am    Post subject: OLED SSD1306 parallel mode library Reply with quote

OLED 0,96' display may work in parallel mode. It is faster and possible to draw graphics - dots, lines, circles, boxes.
You can buy it separately: or unsolder from Arduino module:
Schematic, pins & result for parallel mode:
Library support Contrast regulation (from 0 to 255), Rotate 180, text, dots, lines, circles, box, filled box, picture.
Back to top
View user's profile
jboavida

Bascom Member



Joined: 12 Feb 2005
Posts: 88
Location: Portugal

portugal.gif
PostPosted: Wed Aug 30, 2017 12:35 pm    Post subject: Reply with quote

Hi,

Thanks for sharing. I have an OLED module that uses the SSD1309 controller.
Can you tell me if your library is compatible?

http://www.display-elektronik.de/filter/DEP128064B-Y.pdf

Thanks in advance.
Joaquim
Back to top
View user's profile Visit poster's website MSN Messenger
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Wed Aug 30, 2017 2:17 pm    Post subject: Reply with quote

As I see this display has SSD1305 controller. Anyway SSD1305 and SSD1309 very close to SSD1306, but not compatible.
Back to top
View user's profile
jboavida

Bascom Member



Joined: 12 Feb 2005
Posts: 88
Location: Portugal

portugal.gif
PostPosted: Wed Aug 30, 2017 2:44 pm    Post subject: Reply with quote

Actually I gave you the incorrect part number:

This is the correct one:
http://www.display-elektronik.de/filter/DEP128064B1-Y.pdf

Same dimensions but with the 1309
But if you said that they are incompatible, I'm stuck.

Thanks anyway for your answer.

Joaquim
Back to top
View user's profile Visit poster's website MSN Messenger
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Wed Aug 30, 2017 5:28 pm    Post subject: Reply with quote

You can try this library. I don't have SSD1309 display and wrote this theoretically.
Back to top
View user's profile
jboavida

Bascom Member



Joined: 12 Feb 2005
Posts: 88
Location: Portugal

portugal.gif
PostPosted: Wed Aug 30, 2017 7:34 pm    Post subject: Reply with quote

Thanks! I will try and feedback later. Very Happy
Back to top
View user's profile Visit poster's website MSN Messenger
timbak







PostPosted: Sat Oct 13, 2018 12:30 pm    Post subject: Reply with quote

Mrshilov, is there any command for sleep mode to reduce power consumption?

Look like there is a command "Set Display ON/OFF (AEh/AFh)"

https://www.olimex.com/Products/Modules/LCD/MOD-OLED-128x64/resources/SSD1306.pdf

Can you add it to your lib please?
Back to top
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Sat Oct 13, 2018 5:50 pm    Post subject: Reply with quote

You may use direct commands:
Code:
Glcdcmd &HAE     'Display OFF
Glcdcmd &HAF     'Display ON

Also you can power this LCD from mc free port pin and unpower it at all when needed.
Back to top
View user's profile
timbak

Bascom Member



Joined: 18 Oct 2018
Posts: 8

blank.gif
PostPosted: Fri May 08, 2020 10:56 am    Post subject: Reply with quote

Hello Mrshilov!

I tried to compile my old worked project with latest Bascom version (2.0.8.2) and got errors:

Error : 222 Line : 6 Illegal character [expected (, got '' [_GLCD_RST]] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 1 Line : 6 Unknown statement [.EQU not found for:_GLCD_PORT_RST] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 387 Line : 6 IO address must be in range [0-31] [_GLCD_PORT_RST] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 222 Line : 10 Illegal character [expected (, got '' [_GLCD_RST]] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 1 Line : 10 Unknown statement [.EQU not found for:_GLCD_PORT_RST] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 387 Line : 10 IO address must be in range [0-31] [_GLCD_PORT_RST] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 222 Line : 15 Illegal character [expected (, got '' [_GLCD_CS1]] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 1 Line : 15 Unknown statement [.EQU not found for:_GLCD_PORT_CS1] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB
Error : 387 Line : 15 IO address must be in range [0-31] [_GLCD_PORT_CS1] , in File : C:\MCS\BASCAVR2082\LIB\GLCDSSD1306-PAR.LIB

LCD settings:
Code:
$regfile = "xm32a4udef.dat"

...

$lib "glcdSSD1306-Par.lib"
Config Vport0 = A , Vport1 = B , Vport2 = E
Config Graphlcd = 128x64sed , Dataport = Port0 , Rd = Portc.0 , Wr = Port1.3 , A0 = Port1.2

Const Rotate_180 = 0                                        'optional rotate
Cls
Lcdcontrast 255
Setfont Font8x8tt


Can you help please?
Back to top
View user's profile
timbak

Bascom Member



Joined: 18 Oct 2018
Posts: 8

blank.gif
PostPosted: Fri May 08, 2020 11:36 am    Post subject: Reply with quote

If i add Rst = Port1.5 , Cs1 = Port1.6 in "Config Graphlcd" after A0 = Port1.2, it compiled without errors.
But i have no unused pins for this workaround.
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Fri May 08, 2020 2:41 pm    Post subject: Reply with quote

Replace lib,
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum