Was checking that exact post
From what i could see, i removed my previous includes and added the following:
While compiling for the 18F2580, i get the error "WHILE SSP1STAT.2 = 1 : WEND ; SSPSTAT = 1 Transmit in progress" (line that is in the SSD1306.pbpMOD file).Code:#DEFINE colours 1 ;1 mono 2 rg or 3 rgb width con 128 height con 32 include "grx.pbpMOD" include "SSD1306.pbpMOD" include "font.bas" include "bignum.bas" include "bigchr.bas"
I'm guessing that it's because the 18F2580 does not have the SSP1STAT.
Same thing happens with the line SSP1CON2 "While SSP1CON2.6 = 1 : WEND ; Wait for Acknowledge from slave".
Should I replace it with SSPSTAT.2 and SSPCON2 or just delete these 2 lines?



Reply With Quote

Bookmarks