Page 5 of 12
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 1:26 am
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
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 9:33 am
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
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 12:04 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 2:19 pm
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?
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 3:08 pm
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?
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 7:47 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 8:22 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Jan 09, 2022 8:38 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Wed Jan 12, 2022 1:02 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Wed Jan 12, 2022 1:26 pm
by marcelosofth
What about the issue of the files created "mra" there is no way for i2c2oled to recognize it?
Re: i2c2oled (little brother of tty2oled)
Posted: Wed Jan 12, 2022 2:35 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Mon Jan 17, 2022 7:11 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Tue Jan 25, 2022 7:58 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Thu Jan 27, 2022 2:22 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Mon Feb 14, 2022 1:56 pm
by venice
I have uploaded a few new Pictures organized from Antoino Villena.
Many Thanks
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Feb 27, 2022 1:06 pm
by venice
New Pics by pplatoon, many Thanks.
pplatoon_preview.png
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Feb 27, 2022 1:31 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Feb 27, 2022 6:10 pm
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.
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Feb 27, 2022 6:58 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Sun Feb 27, 2022 10:49 pm
by cursedverses
AH, I2S... not I2C - apologies.
Re: i2c2oled (little brother of tty2oled)
Posted: Mon Feb 28, 2022 6:04 pm
by marcelosofth
Re: i2c2oled (little brother of tty2oled)
Posted: Mon Feb 28, 2022 7:16 pm
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?
Re: i2c2oled (little brother of tty2oled)
Posted: Tue Mar 01, 2022 11:24 am
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
Re: i2c2oled (little brother of tty2oled)
Posted: Thu Mar 03, 2022 9:55 am
by venice
Ok, uploaded as "spectrum_alt1.pix" Picture.
Re: i2c2oled (little brother of tty2oled)
Posted: Thu Mar 03, 2022 5:05 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Thu Mar 03, 2022 7:58 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Thu Mar 03, 2022 11:25 pm
by Moondandy
That's those added now Venice, is there a master list somewhere so they can be checked off?
Re: i2c2oled (little brother of tty2oled)
Posted: Fri Mar 04, 2022 10:22 am
by venice
Fresh exported list attached.
Includes "_altx" lines.
Re: i2c2oled (little brother of tty2oled)
Posted: Fri Mar 04, 2022 5:43 pm
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
Re: i2c2oled (little brother of tty2oled)
Posted: Sat Mar 05, 2022 4:33 pm
by Moondandy
Ok, that's arcade section done also. Hopefully of use to you guys.