Page 4 of 11

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Dec 22, 2021 4:03 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Dec 25, 2021 9:58 am
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

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Dec 25, 2021 3:35 pm
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 !

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 10:22 am
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!

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 2:06 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 2:37 pm
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 ^_^

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 2:42 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 3:40 pm
by marcelosofth
Now I'm saving in .bmp and no longer .png, follow the link below!

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

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 4:14 pm
by venice
Uploaded the PSX Logo.

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 4:18 pm
by marcelosofth
How sad, after all I'll have to convert one by one again in the Gimp, damn it! 🤬😪

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 5:30 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 5:38 pm
by marcelosofth
Do you have an example to show? my Mister arrives in 3 weeks :'(

Re: i2c2oled (little brother of tty2oled)

Posted: Mon Dec 27, 2021 5:59 pm
by venice
Example?

Re: i2c2oled (little brother of tty2oled)

Posted: Tue Dec 28, 2021 2:42 pm
by marcelosofth
Doctor "venice" finally all cores finished, addition with news 246 cores! UP!!! Total + 500 🕹️💪

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

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Dec 29, 2021 9:44 am
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/

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

Posted: Wed Dec 29, 2021 3:18 pm
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.

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

Posted: Wed Dec 29, 2021 5:15 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Dec 29, 2021 5:20 pm
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

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Dec 29, 2021 9:25 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Dec 29, 2021 9:40 pm
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

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Jan 01, 2022 4:03 pm
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 :)

Re: i2c2oled (little brother of tty2oled)

Posted: Wed Jan 05, 2022 1:51 pm
by marcelosofth
Hellou Mr. Venice, here's a little update ok!

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

Re: i2c2oled (little brother of tty2oled)

Posted: Thu Jan 06, 2022 11:43 am
by venice
Already uploaded.

Re: i2c2oled (little brother of tty2oled)

Posted: Fri Jan 07, 2022 2:47 pm
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?

Re: i2c2oled (little brother of tty2oled)

Posted: Fri Jan 07, 2022 5:41 pm
by marcelosofth
ALELUIAAAAAAAAAAAAA!!! ^_^

Re: i2c2oled (little brother of tty2oled)

Posted: Fri Jan 07, 2022 5:53 pm
by marcelosofth
I just tested ImageMagick + PMToPIX_v2 and now it works perfectly!!!

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Jan 08, 2022 2:48 pm
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?

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Jan 08, 2022 4:04 pm
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.

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Jan 08, 2022 6:29 pm
by marcelosofth
When I run "update_i2c2oled.sh" will it download and replace files from the "PIX" directory?

Re: i2c2oled (little brother of tty2oled)

Posted: Sat Jan 08, 2022 7:06 pm
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.