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 »

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.

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 »

Does anyone have 128x64 image collection for "yellow and blue" 2-color oled?
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 »

Find some Pix here
https://github.com/venice1200/MiSTer_i2 ... ctures/Pix
and here
https://github.com/ingloriond/MiSter_I2 ... c2oled_pix

//Edit
Download the ZIP file from here https://github.com/venice1200/MiSTer_i2 ... s/main.zip
Unzip it, search for PIX.

Voila, you have all PIX I know as I add all Pictures from ingloriond to my Repository.

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 »

I'm creating all colors from scratch in the way that I like best, if anyone wants!
Ps. I wanted to learn how to make animated PIX!

https://cdn.awsli.com.br/17/17197/arquivos/i2c.png
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: Thu Dec 09, 2021 12:18 pm I'm creating all colors from scratch in the way that I like best, if anyone wants, I can make it available for download!
Then please upload your pix here in a ZIP file.
marcelosofth wrote: Thu Dec 09, 2021 12:18 pm Ps. I wanted to learn how to make animated PIX!
An animated PIX is not a real animation, it's just a set of Icons drawn over the base picture at a dedicated position in a timed order.

Here is an Example, it's the "Press Play on Tape" Animation. See https://github.com/venice1200/MiSTer_i2 ... ed.sh#L407

Code: Select all

function pressplay () {
  local t=0;
  showpix pressplay                                       #Load Base Picture "pressplay.pix"
  # Testing Font-Based-Animation
  for (( t=0; t<5; t++)); do                              #Loop
    set_cursor 48 4                                       #SetCursor
    i2cset -y ${i2cbus} ${oledaddr} 0x40 ${itape1}  i     #Draw Tape Wheel 1 with Icon 1
    set_cursor 64 4                                       #SetCursor
    i2cset -y ${i2cbus} ${oledaddr} 0x40 ${itape2} i      #Draw Tape Wheel 2 with Icon 2
    sleep 0.3                                             #Wait
    set_cursor 48 4                                       #SetCursor
    i2cset -y ${i2cbus} ${oledaddr} 0x40 ${itape2} i      #Draw Tape Wheel 1 with Icon 2
    set_cursor 64 4                                       #SetCursor
    i2cset -y ${i2cbus} ${oledaddr} 0x40 ${itape1} i      #Draw Tape Wheel 2 with Icon 1
    sleep 0.3                                             #Wait
  done
}
Data of Wheel 1+2

Code: Select all

itape1="0x3C 0x5A 0x81 0xC3 0xC3 0x81 0x5A 0x3C"
itape2="0x3C 0x66 0xE7 0x81 0x81 0xE7 0x66 0x3C"
The first Wheel (itape1) is calculated out of...
tape1.png
See the full script: https://github.com/venice1200/MiSTer_i2 ... 2c2oled.sh
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 »

I also saw an example of a slide, where the image is shifted to the right, very cool!

Follow the link, see what you think of the work, it is not complete but the main one is there!

Link: https://www.sendspace.com/file/l783g5
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: Thu Dec 09, 2021 2:51 pm I also saw an example of a slide, where the image is shifted to the right, very cool!
The i2c2oled NCC1701 Demo?
That's Display based pixel scrolling.

//Edit
Nice Pictures, well done.
But you now that you need to convert them to B/W and pix format?
See https://github.com/venice1200/MiSTer_i2 ... dification

...and renamed to the Cores name.

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 »

I don't know much about this project, but do you want an extra column on the tty2oled to track images created for this, or does it work differently?
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 »

That's right "Venice" I haven't converted to .pix yet, but this is easy I've already tested it here, now like you said I have to rename it to the name of each "CORE" for display!

Ps.: I ended up selling my Mister for a very good price, and the other one I bought arrives next week, so that's where I can really test it out!

Ps. do you use some .pix as right scroll? if you use it, can you make a video for me to see?
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: Thu Dec 09, 2021 7:11 pm Ps. do you use some .pix as right scroll? if you use it, can you make a video for me to see?
Hardware Scrolling means for SSD1306 Oled, define the display area which should scroll and start scrolling.
It will continuously scroll until you stop it.

See:
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 »

Moondandy wrote: Thu Dec 09, 2021 5:43 pm I don't know much about this project, but do you want an extra column on the tty2oled to track images created for this...
I am not sure, we will see.
Thanks for asking.

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 »

Simply wonderful, mine is this SSD1306, I'm Noob, if you can I'd like you to teach me how to do it, I don't know anything about the command line! hahaha!
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: Thu Dec 09, 2021 7:43 pm ...if you can I'd like you to teach me how to do it, I don't know anything about the command line! hahaha!
Teach? What exactly?

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

User avatar
rbz
Posts: 16
Joined: Thu Nov 25, 2021 10:56 pm
Has thanked: 36 times
Been thanked: 17 times

Re: i2c2oled (little brother of tty2oled)

Unread post by rbz »

I am adding in support to view the i2c2oled pix files in the tty2oled pixviewer

@venice opened a PR in i2c2oled repo to add a workflow to generate the data file
Screenshot 2021-12-10 085022.png
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 am thinking about moving the i2c2oled pictures to the picture repository.
Would this help or make things easier?


//Edit
Idea dropped!

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 »

Yes Venice, it would be perfect to move the images, accordingly! ^_^

Ps. Just amazing the .pix viewer on the site! :idea: ;)
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 Updates :mrgreen:

i2c2oled got his own Installer/Updater. Thanks to RealLarry ;)
Run

Code: Select all

wget https://raw.githubusercontent.com/venice1200/MiSTer_i2c2oled/main/update_i2c2oled.sh -O /media/fat/Scripts/update_i2c2oled.sh
from the MiSTer's command line (F9) or from an SSH Session to download the i2c2oled install/update script to the MiSTer's Script Folder.
After the Script was downloaded, start it from the MiSTer's Script Menu, the MiSTer's command line (F9) or an SSH Session running the command

Code: Select all

/media/fat/Scripts/update_i2c2oled.sh
All needed Files and Pictures are downloaded to the right places and the correct permissions are set.

And i2c2oled got now his own Picture Repository on GitHub.
See: https://github.com/venice1200/MiSTer_i2c2oled_Pictures

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 »

More Updates :mrgreen:
The tty2oled Picture Viewer by mr-fitzie supports now i2c2oled Pictures.
Jump to https://venice1200.github.io/MiSTer_tty2oled_Pictures

Many many thanks for this update!

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 »

Is there somewhere to download all the full .pix "128x64" of Arcade games?
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 »

Not that I know.

But you already made a lot of nice looking png’s.
They just need to be converted and renamed.
Could you do this?

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 »

Friend "Venice" follow the link, I've already renamed, add more cores it and converted it to "pix" see if they're ok"

Link: https://www.sendspace.com/file/vjy28h
Post Reply