i2c2oled (little brother of tty2oled)

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

Download the ZIP
https://github.com/venice1200/MiSTer_i2 ... s/main.zip
end extract it.

You can try Imagemagick command line conversion as well.

The result of

Code: Select all

magick mogrify -monochrome -negate -format xpm *.png
was not bad.

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 »

Hi "Venice" I made some final changes, fixed the 4 "1943", incorporated some "Alt" images for mine that were better and added 2 more "Yie Ar Fung-Fu and Coco3" ok!

https://www.sendspace.com/file/wa96w0
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 replaced the 1943 Pictures and added the new ones.
Please upload next time only new or changed pictures.
Many Thanks

@All
Merry christmas and a happy new year !

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 »

Good morning "Venice" I'm making a great addition now to everything that was missing, and I found it fantastic the "Imagemagick" helps and a lot, however, when doing the command line, the conversion was done but inverted the black/white, I searched the internet as reverse this but I couldn't, see an example attached!

https://www.sendspace.com/file/w8ao9n

Ps. If you can solve this it will help me a lot!
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 »

Does this help?
https://superuser.com/questions/1194468 ... magemagick

The imagemagick command line from above includes the
-negate option to invert the b/w picture.
Maybe you need to remove it.

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 »

Unfortunately it didn't work, if I remove the "-negate" or "--monochrome" I need help to solve this, I decided to do all the colors of Arcade, it's been a lot of work, but I'm going to finish it, there will be more than 100 new ones images ^_^
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 post one of your PNG‘s here.

//Edit
It looks to me Gimp uses " " (Space) for drawn pixels and "." (Dot) for not drawn pixels in a b/w xpm picture

The ImageMagick picture is the opposite to the Gimp Picture.
" " (Space) and "." (Dot) are swapped.

The Zoomed Textfiles tell/show us the truth.
See:
Gimp-ImageMagick.png
The ImageMagick "-negate" Option does not really help as only the xpm picture header is changed.
Means, for an correct xpm to pix conversion the header must be analysed.

For Gimp pictures we need

Code: Select all

Replace all Dot's "." with the Number "0"
Replace all Spaces " " with the Number "1"
For ImageMagick Pictures we need

Code: Select all

Replace all Dot's "." with the Number "1"
Replace all Spaces " " with the Number "0"
Actually only Gimp Pictures are correct converted by the XPMtoPIX Tool.
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 »

Now I'm saving in .bmp and no longer .png, follow the link below!

https://www.sendspace.com/file/up6gcg
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 »

Uploaded the PSX Logo.

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 »

How sad, after all I'll have to convert one by one again in the Gimp, damn 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 »

Minor Script Update.
The i2c2oled Script got the new Option "rotate" which rotates the screen 180 degrees.
Taken from MickGyvers forked Version ;)
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 »

Do you have an example to show? my Mister arrives in 3 weeks :'(
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 »

Example?

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 »

Doctor "venice" finally all cores finished, addition with news 246 cores! UP!!! Total + 500 🕹️💪

https://www.sendspace.com/file/ojb6fc
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: Tue Dec 28, 2021 2:42 pm ...finally all cores finished, addition with news 246 cores! UP!!! Total + 500 🕹️💪
Muito obrigado pelas muitas fotos ;) / Many many many thanks for your work.
The pictures are uploaded to the Picture-Repository and ready for the i2c2oled "updater".

Double check the PixViewer at https://venice1200.github.io/MiSTer_tty2oled_Pictures/

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

Sliff2000
Posts: 28
Joined: Mon Nov 15, 2021 4:18 am
Has thanked: 6 times
Been thanked: 6 times

Re: i2c2oled (little brother of tty2oled) and Mister mt-32 pi

Unread post by Sliff2000 »

Are the sdl and scl pins on the mister arduino headers the same as the rtc board? I am running a mt-32 pi hat for midi and it connects to the sdl and scl pins on the de-10 nano. Curious if this would cause an issue before I start taking everything apart. Also it shows to connect to 3v, but I see the specs on the 2864 128x64 OLED Display SSD1306 Driver I2C IIC display can run 3-5v -- any reason for running 3? Thanks.
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) and Mister mt-32 pi

Unread post by venice »

Sliff2000 wrote: Wed Dec 29, 2021 3:18 pm Are the sdl and scl pins on the mister arduino headers the same as the rtc board? I am running a mt-32 pi hat for midi and it connects to the sdl and scl pins on the de-10 nano. Curious if this would cause an issue before I start taking everything apart..
The "Arduino" Header is connected to the FPGA Part of the DE10-Nano.
The so called "LTC" Header, where the RTC is connected to, is connected to the HPS(ARM) Part of the DE10-Nano.
I am running Display and MT32-pi together, no problem.
Sliff2000 wrote: Wed Dec 29, 2021 3:18 pm Also it shows to connect to 3v, but I see the specs on the 2864 128x64 OLED Display SSD1306 Driver I2C IIC display can run 3-5v -- any reason for running 3? Thanks.
3V and 9V are available at the LTC Header, but no 5V if I am correct.

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 »

i2c2oled Testing Version available

Download the Updater/Installer running

Code: Select all

wget https://raw.githubusercontent.com/venice1200/MiSTer_i2c2oled/main/testing/update_i2c2oled.sh -O /media/fat/Scripts/update_i2c2oled.sh
from cli or ssh and run the update_i2c2oled.sh script.

See also
https://github.com/venice1200/MiSTer_i2 ... in/testing

Changes/News:
Split Daemon Script into Daemon, User and System INI Files.
User-INI: /media/fat/i2c2oled/i2c2oled-user.ini

Added User-INI Option to rotate the display direction for 180 degrees.
Default: rotate="no"
After changing this Option your Display need a power-cycle.
Code taken from the i2c2oled fork from MickGyver. Many Thanks.

Added User-INI Option for the tiny animation before the picture
Set "animation" to:
  • -1 (default) for Random Animation 1..3
  • 0 for NO Animation
  • 1 for PressPlay Animation
  • 2 for Loading v1 Animation
  • 3 for Loading v2 Animation
Added User-INI Option for Slideshow
Default: slidetime=3.0 (Seconds)

Slideshow/Picture Viewer:
  • Show all Pictures one by one
    Run: /media/fat/i2c2oled/i2c2oled_slideshow.sh from ssh/cli
    Daemon will be stopped before and started after Slideshow.
  • Show single Picture
    Run: /media/fat/i2c2oled/i2c2oled_slideshow.sh /media/fat/i2c2oled/Pix/PSX.pix

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

Sliff2000
Posts: 28
Joined: Mon Nov 15, 2021 4:18 am
Has thanked: 6 times
Been thanked: 6 times

Re: i2c2oled (little brother of tty2oled)

Unread post by Sliff2000 »

Just like to say thumbs up to venice - fantastic project bro! I found a 5v off the ADC header on the de-10 ((10 pin header by the ethernet)) pin 1 is 5v and pin 10 is gnd. The 3v on the rtc was a little to small for my aging eyes. The IC display can run 3-5v. I also removed the wire from the power and ground dupont connectors and cut the plastic short where the wire goes is so the analog board can still fit and then pushed them back in. I had angle header pins so I soldered that on to the rtc -- shows 3, but only needed 2.
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 »

Great to see another working i2c2oled.

Maybe the contrast value will be helpful for you.
https://github.com/venice1200/MiSTer_i2 ... led.sh#L60

In „testing“ the contrast is part of the User INI File.
https://github.com/venice1200/MiSTer_i2 ... ser.ini#L8

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 »

"Testing" got an Minor Update.
Added User-INI Option "BLACKOUT"
Default: BLACKOUT="yes"
Set to "yes" (default) for the short "Display-Blackout" before a Picture change. "no" = no Blackout.

Happy New Year and all the best :)

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 »

Hellou Mr. Venice, here's a little update ok!

https://www.sendspace.com/file/ss7v19
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 »

Already uploaded.

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 »

We got a new Version of the XPMtoPix Converter, compatible with XPM files created with Gimp and ImageMagick.
Many Thanks to MickGyver for this.

Gimp has the XPM export function but for batch conversion it easier to use ImageMagick with the commands

Code: Select all

magick mogrify -monochrome -format xpm *.png  //convert all png's to xpm
magick mogrify -monochrome -format xpm *.bmp  //convert all bmp's to xpm
But Gimp and ImageMagick create different XPM Headers.
The new version of the converter analyses the Header before conversion to make sure the PIX file will be correct.

Note: The Test-Pictures for the conversion used only B&W as colors.

Get the new Converter from here: https://github.com/venice1200/MiSTer_i2 ... PMToPIX_v2
The Tool need .NET Core Framework 3.1+.

Usage:
Drop the folder containing your XPM's onto the Batch file called XPMToPIX_normal.bat to get the XPM's converted with correct colors.
Check the Readme as well.

Question:
Has someone i2c2oled testing running?

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 »

ALELUIAAAAAAAAAAAAA!!! ^_^
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 »

I just tested ImageMagick + PMToPIX_v2 and now it works perfectly!!!
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, mine doesn't have the file "i2c2oled-user.ini" could you send me the file for me to add in my directory "i2c2oled" ?
Note: How does this animation work?
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!
I released "i2c2oled testing" to "i2c2oled stable".

Download the Updater/Installer, if you don't have the i2c2oled updater on you system, running

Code: Select all

wget https://raw.githubusercontent.com/venice1200/MiSTer_i2c2oled/main/update_i2c2oled.sh -O /media/fat/Scripts/update_i2c2oled.sh
from cli or ssh or enable i2c2oled Files in update_all (see Menu-Misc).

After the download, or if you have the updater already on your system, run the update_i2c2oled.sh script from cli or ssh.

Changes/News:
Split Daemon Script into Daemon, User and System INI Files.
User-INI File: /media/fat/i2c2oled/i2c2oled-user.ini

User-INI Option "CONTRAST"
Set your Display's Contrast Value from "0..255", default = 100

User-INI Option "ROTATE"
Set to "true" for 180 Degree Display Rotation, default = "false"
Code taken from the i2c2oled fork from MickGyver. Many Thanks.

User-INI Option "ANIMATION"
Set "animation" to -1 (default) for Random Animation, 0 for NO Animation, 1 for PressPlay, 2..5 for "Loading" Variants

User-INI Option "BLACKOUT"
Set to "yes" (default) for the short "Display-Blackout" before a Picture change, "no" = no blackout

User-INI Option for Slideshow
Default: slidetime=3.0 (Seconds)

Slideshow/Picture Viewer:
  • Show all Pictures one by one
    Run: /media/fat/i2c2oled/i2c2oled_slideshow.sh from ssh/cli
    The i2c2oled Daemon will be stopped before and started after the Slideshow.
  • Show single Picture
    Run: /media/fat/i2c2oled/i2c2oled_slideshow.sh /media/fat/i2c2oled/Pix/PSX.pix
See also
https://github.com/venice1200/MiSTer_i2c2oled

Have fun 8-)
Report problems here.

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 »

When I run "update_i2c2oled.sh" will it download and replace files from the "PIX" directory?
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 »

Yes, make a backup of your data before you run the update script.

I will add in the next days a private picture folder which has priority and will not been touched by the updater.

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

Post Reply