|
Forum Index : Microcontroller and PC projects : ssd1306
| Author | Message | ||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3481 |
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 KingdomPosts: 8304 |
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 StatesPosts: 3481 |
"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 KingdomPosts: 2681 |
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 KingdomPosts: 10628 |
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 KingdomPosts: 8304 |
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 KingdomPosts: 2681 |
|
||||
| stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2681 |
|
||||
| stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2681 |
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 StatesPosts: 3481 |
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 KingdomPosts: 2681 |
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 StatesPosts: 3481 |
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 KingdomPosts: 2681 |
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 StatesPosts: 3481 |
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: AustraliaPosts: 2832 |
"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 KingdomPosts: 2681 |
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 StatesPosts: 3481 |
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 KingdomPosts: 8304 |
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: AustraliaPosts: 2832 |
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 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 KingdomPosts: 10628 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |