Hello, I am looking for an example of code in Mikrobasic for the implementation of a 128x32 monochrome SSD 1306 oled display in I2C.
Best regards.
Pierre
Help for OLED Display
Re: Help for OLED Display
Hi,
Have you checked LibStock ?
https://libstock.mikroe.com/project_cat ... ew/29/oled
Regards,
Filip.
Have you checked LibStock ?
https://libstock.mikroe.com/project_cat ... ew/29/oled
Regards,
Filip.
Re: Help for OLED Display
Hello,
Thank you for your answer but unfortunately I can't find an example in Mikrobasic under this link.
The only example is for an Oled SSD1306 128x64, while I'm looking for SSD Oled 128x32
Best regards.
Pierre
Thank you for your answer but unfortunately I can't find an example in Mikrobasic under this link.
The only example is for an Oled SSD1306 128x64, while I'm looking for SSD Oled 128x32
Best regards.
Pierre
-
- Posts: 136
- Joined: 02 Jan 2020 19:00
Re: Help for OLED Display
https://libstock.mikroe.com/projects/vi ... asic-pic18
Pins and I2C rewrite for the chip used. Don't use tftlcdtest or fix 0x63 to 0x31.
I2C address can be 0x78 or 0x7A.
Pins and I2C rewrite for the chip used. Don't use tftlcdtest or fix 0x63 to 0x31.
I2C address can be 0x78 or 0x7A.
Code: Select all
symbol x_size = 128
symbol x_max = 128
symbol x_min = 0
symbol y_size = 32
symbol y_max = 4
symbol y_min = 0
''symbol ON = 1
'symbol OFF = 0
symbol ROUND = 1
symbol SQUARE = 0
symbol buffer_size = 512 '(x_max * y_max)
''typedef Mychrarray as byte[512]
dim buffer as char[512]
Code: Select all
OLED_write(Set_Multiplex_Ratio_CMD, CMD)
OLED_write(0x1F, CMD)
Re: Help for OLED Display
Hello AntiMember,
Thanks for your help.
Can you tell me in which part of the code should be the I2C address module (0x78 or 0x7A)?
Best Regards
Pierre
Thanks for your help.
Can you tell me in which part of the code should be the I2C address module (0x78 or 0x7A)?
Best Regards
Pierre
-
- Posts: 136
- Joined: 02 Jan 2020 19:00
Re: Help for OLED Display
Hello pieadi.
In this example, this is not used. I2C here is programmatically emulated for one device on the bus. I don't know how it works.
It's just that this is the only example on mikrobasic that was found...
I gave the address in case you want to implement a hardware I2C with a choice of devices on the bus..
In this example, this is not used. I2C here is programmatically emulated for one device on the bus. I don't know how it works.
It's just that this is the only example on mikrobasic that was found...
I gave the address in case you want to implement a hardware I2C with a choice of devices on the bus..
Re: Help for OLED Display
Hello AntiMember,
Thanks for your help.
I better understand how to use an OLED display.
I continue my tests and hope i find the solution.
Best regards.
Pierre
Thanks for your help.
I better understand how to use an OLED display.
I continue my tests and hope i find the solution.
Best regards.
Pierre
-
- Posts: 1
- Joined: 03 Oct 2023 03:36
Re: Help for OLED Display
I am using Mikrobasics and PIC16F1829 for my project.
Can someone help me how to handle the 4-wire SSD1306 OLED display with hardware I2C?
Display address: 0x78
Can someone help me how to handle the 4-wire SSD1306 OLED display with hardware I2C?
Display address: 0x78