i2c2oled (little brother of tty2oled)
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
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
magick mogrify -monochrome -format xpm *.bmp //convert all bmp's to xpm
Ps. Regardless of whether you use XPMToPIX or XPMToPIX_v2
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
Upload some bmp examples and I will test.
You can also try to convert the bmp with
You can also try to convert the bmp with
- magick mogrify -monochrome -negate -format xpm *.bmp
- The second batchfile xpmtopix_inverted.bat
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
You will get the file with the update.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 can also extract it from the ZIP file https://github.com/venice1200/MiSTer_i2 ... s/main.zip
But better use the updater.
An "Animation" contains a base picture, one or more 8x8 pixel icons and some code.
The base picture The Icon iload2="0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00" (as example) 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
}
The cursor-pointer is automatically moved with each drawn icon.
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.
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
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?
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?
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
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?
Correct me if I am wrong.
Marcelo, is everything working now?
Did you use the installer or manual installation?
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
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.
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.
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
„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.
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.
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
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
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
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
If you get such Problems please make a screenshot or a photo and post it here.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!
I tried the update script using Menu/Scripts and everything was working.
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
What about the issue of the files created "mra" there is no way for i2c2oled to recognize it?
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
There is no issue.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?
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.
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
Venice, did you see how cool the custom Boots are too?venice wrote: ↑Wed Jan 12, 2022 2:35 pmThere is no issue.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?
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.
https://github.com/uberyoji/mister-boot-roms
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
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.
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.
- 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)
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
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.
https://www.prusaprinters.org/prints/12 ... dust-cover
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.
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
I have uploaded a few new Pictures organized from Antoino Villena.
Many Thanks
Many Thanks
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
New Pics by pplatoon, many Thanks.
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
I released new Versions of the i2c2oled Script and the System INI file.
Changes and News:
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"
You do not have the required permissions to view the files attached to this post.
-
- Posts: 180
- Joined: Sun May 24, 2020 9:13 pm
- Has thanked: 186 times
- Been thanked: 34 times
Re: i2c2oled (little brother of tty2oled)
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.
Apologies if this has already been asked.
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
This connector?
It has something to do with Audio, if I am right.
https://en.wikipedia.org/wiki/I%C2%B2S
It has something to do with Audio, if I am right.
https://en.wikipedia.org/wiki/I%C2%B2S
You do not have the required permissions to view the files attached to this post.
-
- Posts: 180
- Joined: Sun May 24, 2020 9:13 pm
- Has thanked: 186 times
- Been thanked: 34 times
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
Venice, follow my latest updates!
https://www.sendspace.com/file/w574h9
https://www.sendspace.com/file/w574h9
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
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?
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?
- marcelosofth
- Posts: 174
- Joined: Wed Sep 22, 2021 10:03 pm
- Location: Brazil - São Paulo
- Has thanked: 8 times
- Been thanked: 4 times
- Contact:
Re: i2c2oled (little brother of tty2oled)
TK-90X - > Spectrum (clone of Brazil)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?
More one pic "Sly Spy": https://www.sendspace.com/file/k8y5a3
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
- Moondandy
- Top Contributor
- Posts: 535
- Joined: Mon May 25, 2020 2:14 am
- Location: Edinburgh, Scotland
- Has thanked: 32 times
- Been thanked: 102 times
Re: i2c2oled (little brother of tty2oled)
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
https://docs.google.com/spreadsheets/d/ ... a4RCU/edit
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
Please add the column for i2c2oled pix.
But there are probably picture builders which don‘t use this board, so we will see.
thx
But there are probably picture builders which don‘t use this board, so we will see.
thx
- venice
- Top Contributor
- Posts: 788
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 278 times
- Been thanked: 278 times
Re: i2c2oled (little brother of tty2oled)
Fresh exported list attached.
Includes "_altx" lines.
Includes "_altx" lines.
You do not have the required permissions to view the files attached to this post.
- Moondandy
- Top Contributor
- Posts: 535
- Joined: Mon May 25, 2020 2:14 am
- Location: Edinburgh, Scotland
- Has thanked: 32 times
- Been thanked: 102 times
Re: i2c2oled (little brother of tty2oled)
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
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