Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:08 21 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ssd1306

     Page 2 of 3    
Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 08:07pm 27 Aug 2022
Copy link to clipboard 
Print this post

Are you using teraterm or mmedit?

After "Invalid option", what does option list show? Then ?mm.device$, mm.ver
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 08:25pm 27 Aug 2022
Copy link to clipboard 
Print this post

You need to give us *accurate* and *complete* info if you want us to help, Stan. It's like wading through treacle sometimes. :(

Peter's setup works. Copy that first. Exactly. If you can't get that to work then look *very carefully* at your wiring and your spelling (especially the letter "I" and the number "1" - don't use lower case).

According to my notebook I put one of these on GP14 (I2C2_SDA) and GP15 (I2C2_SCL) then used:

OPTION SYSTEM I2C GP14, GP15
OPTION LCDPANEL SSD1306I2C, LANDSCAPE, 0

and it works perfectly. It's powered from 3V3 with no pull-ups.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 09:06pm 27 Aug 2022
Copy link to clipboard 
Print this post

"invalid option" would not result from a wiring problem. If not misspelled it indicates that you are not connected to what you think you are. Maybe you're in mmedit and connected to tassyjim's device. Or maybe you have the VGA firmware loaded.

?mm.device$, mm.ver will tell you (and us) what you are actually connected to.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 09:21pm 27 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  You need to give us *accurate* and *complete* info if you want us to help, Stan. It's like wading through treacle sometimes. :(

Peter's setup works. Copy that first. Exactly. If you can't get that to work then look *very carefully* at your wiring and your spelling (especially the letter "I" and the number "1" - don't use lower case).

According to my notebook I put one of these on GP14 (I2C2_SDA) and GP15 (I2C2_SCL) then used:

OPTION SYSTEM I2C GP14, GP15
OPTION LCDPANEL SSD1306I2C, LANDSCAPE, 0

and it works perfectly. It's powered from 3V3 with no pull-ups.


PicoMiteVGA MMBasic Version 5.07.04
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather
rewired gp14,gp15
> option system i2c gp14,gp15
> option lcdpanel ssd1306i2c, landscape, 0
Error : Invalid Option
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10628
Posted: 09:24pm 27 Aug 2022
Copy link to clipboard 
Print this post

You are using the VGA firmware !!!!!!!!!!!!!!!!!!!!!!!!!

Does the VGA manual mention OPTION LCDPANEL????????

Get a grip!!!!!!!!!!
Edited 2022-08-28 07:25 by matherp
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 09:25pm 27 Aug 2022
Copy link to clipboard 
Print this post

Won't work. Look at the top line: PicoMite VGA. It only has VGA video, nothing else. You have the wrong firmware loaded.
Edited 2022-08-28 07:26 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 09:48pm 27 Aug 2022
Copy link to clipboard 
Print this post

  matherp said  Start with OPTION RESET to clear anything there before. Then use the commands exactly as per my picture. You are using the PicoMite and not PicoMiteVGA firmware? 10K pullups will be fine but are probably already on the SSD1306 PCB
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 09:51pm 27 Aug 2022
Copy link to clipboard 
Print this post

  stanleyella said  
  Mixtel90 said  You need to give us *accurate* and *complete* info if you want us to help, Stan. It's like wading through treacle sometimes. :(

Peter's setup works. Copy that first. Exactly. If you can't get that to work then look *very carefully* at your wiring and your spelling (especially the letter "I" and the number "1" - don't use lower case).

According to my notebook I put one of these on GP14 (I2C2_SDA) and GP15 (I2C2_SCL) then used:

OPTION SYSTEM I2C GP14, GP15
OPTION LCDPANEL SSD1306I2C, LANDSCAPE, 0

and it works perfectly. It's powered from 3V3 with no pull-ups.


PicoMiteVGA MMBasic Version 5.07.04
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather
rewired gp14,gp15
> option system i2c gp14,gp15
> option lcdpanel ssd1306i2c, landscape, 0
Error : Invalid Option
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 09:53pm 27 Aug 2022
Copy link to clipboard 
Print this post

  matherp said  You are using the VGA firmware !!!!!!!!!!!!!!!!!!!!!!!!!

Does the VGA manual mention OPTION LCDPANEL????????

Get a grip!!!!!!!!!!


I would not know, I have never used it.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 09:59pm 27 Aug 2022
Copy link to clipboard 
Print this post

Matherp asked many posts ago if you were sure you were not running the VGA version. I asked several times for you to give us the output of ? mm.device$, mm.ver, which would have revealed the problem.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 10:06pm 27 Aug 2022
Copy link to clipboard 
Print this post

This is the upside down picomite. Re flash in case I used vga, Doh. Where is version test? Option version?
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 10:20pm 27 Aug 2022
Copy link to clipboard 
Print this post

Fourth time: ?mm.device$,mm.ver

There's no "in case"--what you yourself pasted on here said PicoMiteVGA.

~
Edited 2022-08-28 08:24 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 10:22pm 27 Aug 2022
Copy link to clipboard 
Print this post

sorry guys. I got 3 picomites and 2 are wired to ili9341 and work ok.
The other works in teraterm but lcd errors.
I will try with the working spi boards but think it all does not work at once ie a ssd and ili lcd together.
can I use i2c without messing up the spi display,touch and sd card on my picomite ili0341 please?

ili9341 spi was easy compared to ssdi306 i2c
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 10:26pm 27 Aug 2022
Copy link to clipboard 
Print this post

  stanleyella said  Ili9341 spi was easy compared to ssdi306 i2c

It's no harder if you use the right firmware and type the options correctly.

Only one option lcdpanel at a time.

~
Edited 2022-08-28 08:29 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2832
Posted: 11:07pm 27 Aug 2022
Copy link to clipboard 
Print this post

"The other works in teraterm but lcd errors."

That is because it has the VGA firmware installed.
From your own post "PicoMiteVGA MMBasic Version 5.07.04". See where it says VGA? That is how you can tell it is the VGA version and not the LCD version.
To check the firmware (as you have been told many times) in a console window type:-

Print MM.DEVICE$, MM.VER

then read what it says on the screen.

To change the firmware type:-

UPDATE FIRMWARE

And install the NON-VGA PicoMite firmware following the instructions in the manual.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2681
Posted: 11:49pm 27 Aug 2022
Copy link to clipboard 
Print this post

Just "reflashed" picomite second one. the picomite non vga version.
got this far no errors but no display

> option system i2c gp14, gp15
> option lcdpanel ssd1306i2c, landscape, 0
Text 0,0, "test" nothing on ssd.
new install and same file as my other 2 but nothing setup or connected except sda and scl. tried 2 working on 8bit pic ssd1306.
please consider I don't have a clue about i2c... it just works... sometimes
This should be a new picomite so i2c should be no conflicts
Edited 2022-08-28 10:18 by stanleyella
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 12:35am 28 Aug 2022
Copy link to clipboard 
Print this post

Photo showing everything?

I don't know if your Orientation value is valid. The manual says "OR = This is the orientation of the display and it can be LANDSCAPE, PORTRAIT, RLANDSCAPE or RPORTRAIT. These can be abbreviated to L, P, RL or RP. The R prefix indicates the reverse or "upside down" orientation.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8304
Posted: 06:49am 28 Aug 2022
Copy link to clipboard 
Print this post

The sign-on message should say "PicoMite MMBasic", with no mention of VGA. Is that correct? Check, just in case you accidentally used the VGA firmware again.

Make sure your SDA and SCL connections are the right way round. This is very important.

The I2C system in MMBasic is fine. It's been driving I2C displays for ages now. As far as you're concerned here it's just like using SPI but with less wires. :)

I urge you *not* to use MMEdit while you are experimenting with unknown hardware. Stick to Tera Term and the built-in editor even if you hate it. You must remove all possibility that the problem may be somewhere else entirely. Remember that the PicoMite was originally designed to work with Tera Term so you will be working with the right tools. By all means use MMEdit for your main programming, but trying to learn two things at once *will* give you problems at some point.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2832
Posted: 07:13am 28 Aug 2022
Copy link to clipboard 
Print this post

To see if your display is correctly connected to System I2C load and run this little program.

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 zerp to that adress
 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 output should look like this, but showing a different address. This is for two other devices sharing System I2C with addresses &H50 and &H68

System I2C Address Scanner
   0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
01: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
02: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
03: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
04: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
05: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
06: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
07: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>

Edited 2022-08-28 17:14 by phil99
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10628
Posted: 07:27am 28 Aug 2022
Copy link to clipboard 
Print this post

Can I suggest we all give up and leave the OP to it. I've just wasted another 15 minutes of my life finding a SSD1306, wiring it, configuring it, taking screenshots and pics to demo that the display works and exactly how to connect and use the display.
However the OP won't follow advice, won't provide screenshots so we can see what he is doing, won't use Teraterm to simplify diagnosis etc. and seems to think that executing two commands and connecting 2 wires is somehow more difficult than wiring an ILI9341
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025