i2c2oled (little brother of tty2oled)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
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 »

Venice fix, the conversion from BMP to XPM still goes wrong, just like before, where it was supposed to have 1 is 0, I used the command:
magick mogrify -monochrome -format xpm *.bmp //convert all bmp's to xpm
Ps. Regardless of whether you use XPMToPIX or XPMToPIX_v2
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 »

Upload some bmp examples and I will test.

You can also try to convert the bmp with
  • magick mogrify -monochrome -negate -format xpm *.bmp
or the inverted XPM with
  • The second batchfile xpmtopix_inverted.bat

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 »

marcelosofth wrote: Sat Jan 08, 2022 2:48 pm Venice, mine doesn't have the file "i2c2oled-user.ini" could you send me the file for me to add in my directory "i2c2oled" ?
You will get the file with the update.
You can also extract it from the ZIP file https://github.com/venice1200/MiSTer_i2 ... s/main.zip
But better use the updater.
marcelosofth wrote: Sat Jan 08, 2022 2:48 pm Note: How does this animation work?
An "Animation" contains a base picture, one or more 8x8 pixel icons and some code.

The base picture
loading_128x64_base.png
The Icon iload2="0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00" (as example)
iload2.png
And the code

Code: Select all

function loading () {
  local t=0;
  if [ "${BLACKOUT}" = "yes" ]; then
    display_off
  fi
  showpix loading
  display_on
  set_cursor 24 5
  sleep 0.75
  for t in 0.5 0.45 0.4 0.35 0.3 0.25 0.2 0.15 1.0 0.1; do		# going faster each step
    if (( ${1} == 1 )); then
      i2cset -y ${i2cbus} ${oledaddr} 0x40 ${iload1} i			# Loading Icon 1
    elif (( ${1} == 2 )); then
      i2cset -y ${i2cbus} ${oledaddr} 0x40 ${iload2} i			# Loading Icon 2
    elif (( ${1} == 3 )); then
      i2cset -y ${i2cbus} ${oledaddr} 0x40 ${iload3} i			# Loading Icon 3
    elif (( ${1} == 4 )); then
      i2cset -y ${i2cbus} ${oledaddr} 0x40 ${iload4} i			# Loading Icon 4
    fi
    sleep ${t}													# going faster each step
  done
  sleep 0.5
}
draws the base picture (showpix loading) and the icon iload2 (or another one) ten times, starting at set_cursor 24 5 = position x:24 y:5x8.
The cursor-pointer is automatically moved with each drawn icon.


loading_128x64_color.png

Script File: i2c2oled.sh https://github.com/venice1200/MiSTer_i2 ... 2c2oled.sh
Display-Functions for the Script: i2c2oled-system.ini https://github.com/venice1200/MiSTer_i2 ... system.ini
You can use the functions for your own Scripts as well.
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.

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 »

Venice, now fully tested and working the complete line and "XPMToPIX_v2" everything perfect!!!

One question, I separate some CORES like for example NES and Famicom Disk using the file: Famicom Disk.mra and inside having this content:
<mysterromdescription>
<name>Famicom Disk</name>
<setname>Famicom Disk</setname>
<rbf>NES</rbf>
</mysterromdescription>

Using this way i2c2oled cannot find the core to display the Famicom Disk screen, any suggestions?
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 »

Only Arcade Cores (and NeoGeo MVS) support MRA files.
Correct me if I am wrong.

Marcelo, is everything working now?
Did you use the installer or manual installation?

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 »

The "all_update" script doesn't work, I had to go to F9 in the i2c2oled directory and type update_i2c2oled manually and then it worked and it actually replaces all the pix, I disabled the "Black" option, the transition was much better without the black image, it's all very beautiful, congratulations.

It works perfectly for me to create .mra files manually, I have SG-1000, Gameboy Color, etc., I need to think of a way to work i2c2oled on them.
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_all“ only downloads the „update_i2c2oled.sh“ script but doesn‘t start it.

But you can start it from MiSTer‘s Script Menu or via ssh or cli (like you do).

Can you post a mra example here please.

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 »

After I download the script "update_i2c2oled" by "Update_all" when I run in the script session the "update_i2c2oled" goes to a black screen and says to press something and go back to the script and nothing happens, I only managed to update even by pressing F9, entering in media/fat/i2c2oled and typing "update_i2c2oled.sh" then it worked!

Ps. Create new systems!
link: https://www.sendspace.com/file/biznb8

To work, unzip the .rar into the "_consoles" directory!

_CONSOLES (DIRECTORY)
cores
Famicom Disk.mra
Game Boy Color.mra
Sega SG-1000.mra
TurboGrafx16CD.mra
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: Sun Jan 09, 2022 8:38 pm After I download the script "update_i2c2oled" by "Update_all" when I run in the script session the "update_i2c2oled" goes to a black screen and says to press something and go back to the script and nothing happens, I only managed to update even by pressing F9, entering in media/fat/i2c2oled and typing "update_i2c2oled.sh" then it worked!
If you get such Problems please make a screenshot or a photo and post it here.
I tried the update script using Menu/Scripts and everything was working.

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 about the issue of the files created "mra" there is no way for i2c2oled to recognize it?
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 Jan 12, 2022 1:26 pm What about the issue of the files created "mra" there is no way for i2c2oled to recognize it?
There is no issue.
i2c2oled and tty2oled using the file "/tmp/CORENAME" to identify the Core.
Console and Computer Cores write the corename into this file, Arcades the "setname" from the mra file.

Your mra doesn't do anything on my system.

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 »

venice wrote: Wed Jan 12, 2022 2:35 pm
marcelosofth wrote: Wed Jan 12, 2022 1:26 pm What about the issue of the files created "mra" there is no way for i2c2oled to recognize it?
There is no issue.
i2c2oled and tty2oled using the file "/tmp/CORENAME" to identify the Core.
Console and Computer Cores write the corename into this file, Arcades the "setname" from the mra file.

Your mra doesn't do anything on my system.
Venice, did you see how cool the custom Boots are too?

https://github.com/uberyoji/mister-boot-roms
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 latest i2c2oled update adds the folder /media/fat/i2c2oled/PRI to your system.
Add Pictures to this folder which will be used with higher priority and will not be touched by the updater.
Good for personal Menu and Core Pics.

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

User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Sigismond0 »

Fit and finish on the I2C2OLED dust cover for the MiSTer Multisystem is perfect. Even matches the recommended button colors!

https://www.prusaprinters.org/prints/12 ... dust-cover

Mfiv0CO.jpg

Software install was a breeze--just pulled down the updater with update_all, ran it, and everything just worked. I installed with Antonio's board, since it comes pre-populated with a DuPont connector for I2C. All I had to do was connect the screen to the RTC board with a 6" 4-pin M-F Dupont wire. Pins in the male end that plugged into the RTC board needed to be bent 90 degrees around the Ethernet port, but there's plenty of clearance in there and the bend should keep those pretty well locked in.

Two thumbs up for Antonio's RTC board--makes for a plug-and-play installation, no solder required. Bending the Dupont pins isn't ideal so I'll probably go back at some point, desolder the connector from the board, and solder the wires in directly, but for now it works great.

zMNlKew.jpg
pWccVx2.jpg
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 have uploaded a few new Pictures organized from Antoino Villena.
Many Thanks

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 »

New Pics by pplatoon, many Thanks.
pplatoon_preview.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.

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 released new Versions of the i2c2oled Script and the System INI file.

Changes and News:
  • Support for SSD1309 2,42" Display
    Most of these Displays need to be modified from SPI to I2C
  • All User Variables got defaults in "i2c2oled-system.ini"
  • User Variables in "i2c2oled-user.ini" overrides the values in "i2c2oled-system.ini"
    Idea taken from the tty2oled project
  • Add contrast function to "i2c2oled-system.ini"
SSD1306-SSD1309_small.jpg
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.

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 have a question for you guys - my Analogue I/O (from Nat) has what looks like I2C pins on it, between the Fan and VGA socket. Would I be able to use that connector to power i2c2oled?

Apologies if this has already been asked.
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 »

This connector?
It has something to do with Audio, if I am right.
https://en.wikipedia.org/wiki/I%C2%B2S
i2s.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.

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 »

AH, I2S... not I2C - apologies.
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 »

Venice, follow my latest updates!
https://www.sendspace.com/file/w574h9
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 »

Many Thanks.
I uploaded a few of them as alternatives or as new primary one.
The other were part of older picture package and already part of the repository.
Check the PIX Viewer: https://venice1200.github.io/MiSTer_tty2oled_Pictures/

The file "spektrum.pix" shows TK90X color computer.
Which name is correct for this picture?

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 »

venice wrote: Mon Feb 28, 2022 7:16 pm Many Thanks.
I uploaded a few of them as alternatives or as new primary one.
The other were part of older picture package and already part of the repository.
Check the PIX Viewer: https://venice1200.github.io/MiSTer_tty2oled_Pictures/

The file "spektrum.pix" shows TK90X color computer.
Which name is correct for this picture?
TK-90X - > Spectrum (clone of Brazil) 🕹️
More one pic "Sly Spy": https://www.sendspace.com/file/k8y5a3
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 »

Ok, uploaded as "spectrum_alt1.pix" Picture.

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

User avatar
Moondandy
Top Contributor
Posts: 535
Joined: Mon May 25, 2020 2:14 am
Location: Edinburgh, Scotland
Has thanked: 32 times
Been thanked: 97 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Moondandy »

Hey guys, just to say again, if you guys want an extra column on the tty2oled image sheet for tracking what images you all have please feel free to add one and anyone who wants it can ask for edit access:

https://docs.google.com/spreadsheets/d/ ... a4RCU/edit
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 »

Please add the column for i2c2oled pix.
But there are probably picture builders which don‘t use this board, so we will see.
thx

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

User avatar
Moondandy
Top Contributor
Posts: 535
Joined: Mon May 25, 2020 2:14 am
Location: Edinburgh, Scotland
Has thanked: 32 times
Been thanked: 97 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Moondandy »

That's those added now Venice, is there a master list somewhere so they can be checked off?
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 »

Fresh exported list attached.
Includes "_altx" lines.
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.

User avatar
Moondandy
Top Contributor
Posts: 535
Joined: Mon May 25, 2020 2:14 am
Location: Edinburgh, Scotland
Has thanked: 32 times
Been thanked: 97 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Moondandy »

Have updated the non arcade cores tab checking off against the list, and added a counter art the bottom. Arcades is a bigger beast though, may have time to have a look over the weekend for you. Not bad coverage, but a good few missing if anyone was wanting to knock the rest of them out.

If anyone here is making images and needs access to the sheet to update when they upload please request access or PM me your email address.
https://docs.google.com/spreadsheets/d/ ... edit#gid=0
User avatar
Moondandy
Top Contributor
Posts: 535
Joined: Mon May 25, 2020 2:14 am
Location: Edinburgh, Scotland
Has thanked: 32 times
Been thanked: 97 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Moondandy »

Ok, that's arcade section done also. Hopefully of use to you guys.
Post Reply