Posted: 10:17pm 22 Oct 2022 |
|
|
|
Try:-
OPTION LCDPANEL Disable
Then
OPTION LCDPANEL SSD1306I2C, L, 0
Where L = Landscape 0 = Offset. Some versions will have the image offset to one side by a few pixels. Change this number to correct it.
PS. Wrong forum. Edit Have you have correctly setup OPTION SYSTEM I2C sdapin, sclpin ?
To test I2C run this:-
Print "System I2C Address Scanner" ' Prep table Print " 0 1 2 3 4 5 6 7 8 9 A B C D E F" ' loop col/row For y=0 To 7 Print Hex$(y,2);": "; For x=0 To 15 addr = y*16+x ' calc address I2C write addr, 0, 1, &H00 ' write zero to that address If MM.I2C=0 Then ' check for errors Print Hex$(addr,2);" "; ' found one! Else Print "-- "; ' nothing here.. EndIf Next x Print Next y Print MM.DEVICE$, MM.VER
The result should be similar to this:-
> RUN System I2C Address Scanner 0 1 2 3 4 5 6 7 8 9 A B C D E F 00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 01: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 02: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 03: -- -- -- -- -- -- -- -- -- -- -- -- 3C -- -- -- 04: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 05: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 06: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 07: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- PicoMite 5.0704 > Edited 2022-10-23 08:31 by phil99 |