View previous topic :: View next topic |
Author |
Message |
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Sun Sep 27, 2015 12:14 am Post subject: OLED SSD1306 parallel mode library |
|
|
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 |
|
|
jboavida
Joined: 12 Feb 2005 Posts: 94 Location: Portugal
|
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Wed Aug 30, 2017 2:17 pm Post subject: |
|
|
As I see this display has SSD1305 controller. Anyway SSD1305 and SSD1309 very close to SSD1306, but not compatible. |
|
Back to top |
|
|
jboavida
Joined: 12 Feb 2005 Posts: 94 Location: Portugal
|
Posted: Wed Aug 30, 2017 2:44 pm Post subject: |
|
|
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 |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Wed Aug 30, 2017 5:28 pm Post subject: |
|
|
You can try this library. I don't have SSD1309 display and wrote this theoretically. |
|
Back to top |
|
|
jboavida
Joined: 12 Feb 2005 Posts: 94 Location: Portugal
|
Posted: Wed Aug 30, 2017 7:34 pm Post subject: |
|
|
Thanks! I will try and feedback later. |
|
Back to top |
|
|
timbak
|
|
Back to top |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Sat Oct 13, 2018 5:50 pm Post subject: |
|
|
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 |
|
|
timbak
Joined: 18 Oct 2018 Posts: 8
|
Posted: Fri May 08, 2020 10:56 am Post subject: |
|
|
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 |
|
|
timbak
Joined: 18 Oct 2018 Posts: 8
|
Posted: Fri May 08, 2020 11:36 am Post subject: |
|
|
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 |
|
|
Mrshilov
Joined: 24 Jan 2009 Posts: 314 Location: Russia
|
Posted: Fri May 08, 2020 2:41 pm Post subject: |
|
|
Replace lib, |
|
Back to top |
|
|
|