i2c2oled (little brother of tty2oled)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
lui sito
Posts: 8
Joined: Thu May 13, 2021 7:19 pm

Re: i2c2oled (little brother of tty2oled)

Unread post by lui sito »

i2c2oled-rtc.jpg
You do not have the required permissions to view the files attached to this post.
RascalUK
Posts: 156
Joined: Mon Jun 08, 2020 2:02 pm
Location: Manchester, UK
Has thanked: 72 times
Been thanked: 23 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by RascalUK »

Do you "need" a RTC board to do this? Could it not come straight from the pins on the Nano?
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

RascalUK wrote: Sun May 16, 2021 12:54 pm Do you "need" a RTC board to do this? Could it not come straight from the pins on the Nano?
If you find an matching connector for the Nano Board you can use it directly for your i2c connection.
No need for an RTC Board.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

Update

The i2c2oled Script got the new Variable...

Code: Select all

contrast=100             # Set Contrast Value 0..255
Set it as you like/need.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

antoniovillena
Posts: 137
Joined: Sun May 24, 2020 8:11 pm
Has thanked: 2 times
Been thanked: 48 times

Re: i2c2oled (little brother of tty2oled)

Unread post by antoniovillena »

I share this board design on Eagle. Also with gerbers available. The BOM is:
-2x7 female 2.0mm header
-1x4 female 2.54mm header
-2 resistors 4K7 0603

It's like my RTC board but without the RTC components.
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

antoniovillena wrote: Mon May 17, 2021 1:41 pm I share this board design on Eagle. Also with gerbers available. The BOM is:
-2x7 female 2.0mm header
-1x4 female 2.54mm header
-2 resistors 4K7 0603

It's like my RTC board but without the RTC components.
0603 :shock: Could you make it in 0805 ? It's more eyes friendly ;)

Anyway, many many thanks Antonio :D

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

mahen
Posts: 185
Joined: Sun May 24, 2020 8:25 pm
Has thanked: 19 times
Been thanked: 6 times

Re: i2c2oled (little brother of tty2oled)

Unread post by mahen »

Hmm... Any discussion with Sorge to bring this upstream eventually ? -- would apply too to the buzzer used to mimic the Amiga floppy drive sound, which Antonio implemented too. I love it, it adds so much to the experience -- at least if you grew up with those ! I'm even frustrated when games load too quickly :D
RascalUK
Posts: 156
Joined: Mon Jun 08, 2020 2:02 pm
Location: Manchester, UK
Has thanked: 72 times
Been thanked: 23 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by RascalUK »

0603 is for the hardcore :-)
antoniovillena
Posts: 137
Joined: Sun May 24, 2020 8:11 pm
Has thanked: 2 times
Been thanked: 48 times

Re: i2c2oled (little brother of tty2oled)

Unread post by antoniovillena »

venice wrote: Mon May 17, 2021 2:03 pm
antoniovillena wrote: Mon May 17, 2021 1:41 pm I share this board design on Eagle. Also with gerbers available. The BOM is:
-2x7 female 2.0mm header
-1x4 female 2.54mm header
-2 resistors 4K7 0603

It's like my RTC board but without the RTC components.
0603 :shock: Could you make it in 0805 ? It's more eyes friendly ;)

Anyway, many many thanks Antonio :D
I never use 0805 resistors. And 0805 can be difficult to other people who prefer through hole resistors. Design files are available so anyone can modify them.
User avatar
RealLarry
Top Contributor
Posts: 768
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 85 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by RealLarry »

antoniovillena wrote: Mon May 17, 2021 1:41 pm I share this board design on Eagle. Also with gerbers available. The BOM is:
-2x7 female 2.0mm header
-1x4 female 2.54mm header
-2 resistors 4K7 0603

It's like my RTC board but without the RTC components.
Many thanks, Antonio. We highly appreciate this! (even if I'm not going to use i2c2oled as I'm working with the really big guns :) Venice knows what I mean)
RascalUK wrote: Mon May 17, 2021 2:41 pm 0603 is for the hardcore :-)
Uooh! Some of us are at age of 50+ and are having eyes like a mole, so enjoying hardcore on screen is much easyier than 0605 at this stage :lol:
Our standard working outfit: https://bladerunner.fandom.com/wiki/Han ... e=Chew.jpg
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
RascalUK
Posts: 156
Joined: Mon Jun 08, 2020 2:02 pm
Location: Manchester, UK
Has thanked: 72 times
Been thanked: 23 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by RascalUK »

49 today mate. I'm in trouble next year!
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

I was asked in the tty2oled thread about "tip-jar or anything else like that I can contribuite".

Jump to viewtopic.php?p=26148#p26148 to read my answer ;)

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

RascalUK wrote: Mon May 17, 2021 4:09 pm 49 today mate. I'm in trouble next year!
No Trouble 8-)

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
RealLarry
Top Contributor
Posts: 768
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 85 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by RealLarry »

RascalUK wrote: Mon May 17, 2021 4:09 pm 49 today mate. I'm in trouble next year!
Is it your birthday today? Then happy birthday, pal - and welcome to "No country for old men"!
If it isn't: Ha-Ha! https://www.youtube.com/watch?v=0O1H0jcyNsk You're next! ;)
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

The tty2oled Init and Daemon Script needs to be reinstalled after the MiSTer's Linux Update!

//Edit
I am looking for an more persistent setup.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

Hi i2c2oled Users.
I updated the scripts and locations of the i2c2oled related files on the MiSTer to make it more MiSTer Update persistent.
All scripts and the "pix" folder are now located at "/media/fat/i2c2oled/".
See https://github.com/venice1200/MiSTer_i2 ... /README.md for more details.

Run once

Code: Select all

/media/fat/i2c2oled/S60i2c2oled setup 
from cli or via ssh to prepare the MiSTer Autostart System for the i2c2oled Autostart Script.

The only requirement is an MiSTer Version >=2021-08-31.

Stay Healthy

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

cursedverses
Posts: 154
Joined: Sun May 24, 2020 9:13 pm
Has thanked: 152 times
Been thanked: 21 times

Re: i2c2oled (little brother of tty2oled)

Unread post by cursedverses »

I'm loving the idea of this, and thinking of implementing it myself, but I have to ask: there's an SPI connection there, would it be theoretically possible to add an SPI screen (thinking this: https://www.adafruit.com/product/358 or this: https://www.amazon.co.uk/1-8-128x160-Co ... B077K1D5VR) and have a colour logo displayed per core?
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

Another forum user has tried to use the SPI Interface and told me to inform me if he get it working.
No answer until now 8-)
Theoretically is should be possible but I am not sure if you get it working using bash.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
marcelosofth
Posts: 171
Joined: Wed Sep 22, 2021 10:03 pm
Location: Brazil - São Paulo
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by marcelosofth »

Hello friends, I bought this "i2coled" but the name on pins 1 to 4 is different, what is the correct order for me to solder on the RTC?

https://cdn.awsli.com.br/17/17197/arqui ... ed-rtc.jpg
Flandango
Core Developer
Posts: 388
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 41 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Flandango »

VCC => VDD
GND => GND
SCL => SCK
SDA => SDA

So in the picture you provided:
The BLACK wire goes to Pin 1 (GND)
The RED wire goes to Pin 2 (VDD)
The BLUE wire goes to Pin 3 (SCK)
The YELLOW wire goes to Pin 4 (SDA)
User avatar
marcelosofth
Posts: 171
Joined: Wed Sep 22, 2021 10:03 pm
Location: Brazil - São Paulo
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by marcelosofth »

Thank you "Flandango" I really liked the transition of 2 images, do you have a tutorial how to create 2 "pix" to visualize a certain core?
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

See https://github.com/venice1200/MiSTer_i2 ... dification for a little picture howto.
Does this help?

Check this Repository as well
https://github.com/ingloriond/MiSter_I2 ... c2oled_pix
Maybe the picture is already made.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
marcelosofth
Posts: 171
Joined: Wed Sep 22, 2021 10:03 pm
Location: Brazil - São Paulo
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by marcelosofth »

Thanks friend, is there any .pix file viewer for Windows?
Flandango
Core Developer
Posts: 388
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 41 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Flandango »

Is anybody who is using i2c2oled with the latest Linux update having any issues?
I am getting errors and it looks like the version of BASH that comes with the latest linux update (Bash version 5.0.18(1)-releasee (arm-buildroot-linux-gnueabihf)) doesn't process string arrays properly and I am curious if anybody else has come across this.

Never mind. I had to convert all files to unix files with dos2unix. While it didn't seem to have a problem with Bash 4.x and 5.1, 5.0.x seems to really not like the carriage returns on each line of the PIX files.
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

marcelosofth wrote: Mon Nov 29, 2021 11:45 pm Thanks friend, is there any .pix file viewer for Windows?
No. But open the file with an textviewer, make a screenshot from the characters and use graphics program to zoom out.
It should looks like...

XPM_with_01.png
Flandango wrote: Tue Nov 30, 2021 1:15 am Never mind. I had to convert all files to unix files with dos2unix. While it didn't seem to have a problem with Bash 4.x and 5.1, 5.0.x seems to really not like the carriage returns on each line of the PIX files.
I am using the pix since the beginning and with the latest MiSTer System, no problem at all.
How did you copy the files over?
You do not have the required permissions to view the files attached to this post.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Flandango
Core Developer
Posts: 388
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 41 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Flandango »

I had the files on the system since May it was working till my display died a while back.
Just got a bunch of displays for another project I am working on figured I'll toss one on the Mister and that's when I noticed the error on line 350 and after some digging found the issue.
I then pulled down a zip file from Github and unzipped that and still had the issue except that this time I noticed that the S60i2c2oled file errored out saw that it had carriage returns. Converted the scripts to unix format and they worked but still had that error, lit wasn't till after I checked the file format for the pix files that I saw it had carriage returns and converting those also fixed it.
Now mind you, everything works on an older build I tested it on and the same zip file, with carriage returns and all does fine on my ubnutu and msys builds that use bash 5.1.x.
So somehow, most likely during the unzipping process onto the sdcard, the files are processed with carriage returns but I think that's all on my end.
Flandango
Core Developer
Posts: 388
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 41 times
Been thanked: 328 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Flandango »

If anybody who uses the TI-994/A core and is interested in some pix for it....
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

I added the pix to the Repository. Many Thanks.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

User avatar
marcelosofth
Posts: 171
Joined: Wed Sep 22, 2021 10:03 pm
Location: Brazil - São Paulo
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: i2c2oled (little brother of tty2oled)

Unread post by marcelosofth »

What is the friend repository link?
User avatar
venice
Top Contributor
Posts: 739
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 261 times

Re: i2c2oled (little brother of tty2oled)

Unread post by venice »

marcelosofth wrote: Wed Dec 01, 2021 10:04 am What is the friend repository link?
i2c2oled_repo_link.png
You do not have the required permissions to view the files attached to this post.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Post Reply