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
Pierre