I block on Oled display SSD1306 with Mikrobasic

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
pieadi
Posts: 30
Joined: 02 Jun 2012 18:46

I block on Oled display SSD1306 with Mikrobasic

#1 Post by pieadi » 30 Jan 2023 10:11

Hello,
I can't test the Libstock project: https://libstock.mikroe.com/projects/vi ... asic-pic18
With OLED display in I2C
Who can explain to me in which part of the code it is necessary to select I2C instead of SPI.

Code: Select all

module SSD1306 
 include  fonts 
 include bmp
symbol SDA_pin      =                          portD.1
symbol SCK_pin     =                           portD.2
symbol CS_pin      =                           portD.3
symbol DC_pin      =                           portD.4
symbol RST_pin     =                           portD.5
                                                            
symbol D0_pin        =                         SCK_pin
symbol D1_pin        =                         SDA_pin

symbol DAT     =                                     1
symbol CMD     =                                     0
    
symbol Set_Lower_Column_Start_Address_CMD     =   0x00  
Best Regards.
Pierre

Firewire
Posts: 166
Joined: 20 Jun 2009 17:12

Re: I block on Oled display SSD1306 with Mikrobasic

#2 Post by Firewire » 01 Feb 2023 20:41

Hello
It does not work that way. you have to write your own program for i2c.
You can't just change a few lines of code to make it work.
What kind of display is it anyway?

Best regard Peter.

pieadi
Posts: 30
Joined: 02 Jun 2012 18:46

Re: I block on Oled display SSD1306 with Mikrobasic

#3 Post by pieadi » 06 Feb 2023 07:09

Hello,
It is a Oled SSD1306 128x64 I2C display
Best Regards.
Pierre

Post Reply

Return to “mikroBasic PRO for PIC General”