Great, I will try later.
tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Jepp, that's my standard setting.
It looks to me the fonts I added are "transparent" fonts and don't overwrite the background.Mellified wrote: ↑Wed Jun 16, 2021 1:06 pm Overwriting existing text with more text could unlock some interesting visuals. I wasn’t creative enough to come up with any myself though.
It would be nice to have a way to blank only part of the screen. I tried overwriting text with spaces but that had no effect.
The used font are u8g2_font_luBS08_tf, ..10, 14, 18 & u8g2_font_luBS24_tf.
Take a look here https://github.com/olikraus/u8g2/wiki/fntlistall for an list of fonts.
"Transparent" fonts have an "t" in the font name like "u8g2_font_u8glib_4_tf".
I can add some fonts for you if you like, we have enough space in the ESP.
Ok
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
That'd be nice. If you have the space put the non-transparent equivalent of each of the existing ones on perhaps? That'll allow all sorts of special effects for whatever sizes.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
I haven't found the same Font as Non-Transparent but I added 4 new Non-Transparent Fonts which have a smaller width and one "Icon" Font .Mellified post wrote:Thu Jun 17, 2021 4:54 am That'd be nice. If you have the space put the non-transparent equivalent of each of the existing ones on perhaps? That'll allow all sorts of special effects for whatever sizes.
See here https://github.com/olikraus/u8g2/wiki/fntlistall for how they look like.
Code: Select all
0: u8g2_font_luBS08_tf (20x12, 8 Pixel A, Transparent)
1: u8g2_font_luBS10_tf (26x15, 10 Pixel A, Transparent)
2: u8g2_font_luBS14_tf (35x22, 14 Pixel A, Transparent)
3: u8g2_font_luBS18_tf (44x28, 18 Pixel A, Transparent)
4: u8g2_font_luBS24_tf (61x40, 24 Pixel A, Transparent)
5: u8g2_font_profont12_mf (6x12, 8 Pixel A, Non-Transparent)
6: u8g2_font_profont17_mf (9x17, 11 Pixel A, Non-Transparent)
7: u8g2_font_profont22_mf (12x22, 14 Pixel A, Non-Transparent)
8: u8g2_font_profont29_mf (16x29, 19 Pixel A, Non-Transparent)
9: u8g2_font_open_iconic_all_2x_t (16x16 Icons, Transparent)
Fonts 0-4 are the original Transparent Fonts, 5-8 are 4 new Non-Transparent Fonts, 9 is an 16x16 Pixel Icon Font.
The Format is "xxx,yy,f,[Text]" (f instead of s )
Code: Select all
xxx = 3 Digits X-Position 000..255
yy = 2 Digits Y-Position 00..63
f = Font Type, see list above
Example
Code: Select all
1: echo "att" > /dev/ttyUSB0 # Is needed
2: echo "TEXTOUTXY" > /dev/ttyUSB0 # Enable TEXTOUTXY Mode
3: echo "010,20,5,Text Out" > /dev/ttyUSB0 # Show "Text Out" with Font 5 at Position X=10,Y=20.
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Unfortunately the new fonts don't overwrite existing ones it seems. I also tried using the symbolic font, but those didn't overwrite either. Not the end of the world - the support as-is works well. The new fonts are a little more stylized, which gives a different aesthetic. May be nice for some use cases!
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Should do, just tested.
Example:
The Icon Font is also a Transparent one.
//Edit
Post splitted
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Minor Update USB Version related to TEXTOUTXY
No need for leading Zero's for X and Y Values.
The Format is now "x,y,f,[Text]", fully compatible to the old format "xxx,yy,f,[Text]".
Enabled Font 10
No need for leading Zero's for X and Y Values.
The Format is now "x,y,f,[Text]", fully compatible to the old format "xxx,yy,f,[Text]".
Code: Select all
x = X-Position 0..255
y = Y-Position 0..63
f = Font Type 0..10
Code: Select all
10: u8g2_font_lucasarts_scumm_subtitle_o_tf (Nice 12 Pixel Font, Transparent)
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
EDIT : figured it out, see bottom for pinout for this display, if anyone purchases from digikey, mouser etc... and uses it with ESP8266 NodeMCU
Ok so i've uploaded the arduino code to the esp8266, but I don't think the pinout of my display matches with the picture on the wiki...
From what I gather from the spec sheet, i'll have to ground pin 19 and 20 to set it to 4-wire serial... But the rest some don't match?
Pin 1 and 2 remain the same as the picture...
Pin 3 no connect, but looks like I need to ground pin 6 ?
Need help for the rest...
This is the display :
https://www.newhavendisplay.com/specs/N ... 64UCY2.pdf
EDIT pinout for display that works with ESP8266 NodeMCU :
Pin 1 : GND
Pin 2 : +3V
Pin 3 : NC
Pin 4 : D2
Pin 5 : GND
Pin 6 : GND
Pin 7 : D5
Pin 8 : D7
Pin 9 : NC
Pin 10 : GND
Pin 11 : GND
Pin 12 : GND
Pin 13 : GND
Pin 14 : GND
Pin 15 : NC
Pin 16 : D1
Pin 17 : D8
Pin 18 : NC
Pin 19 : GND
Pin 20 : GND
Ok so i've uploaded the arduino code to the esp8266, but I don't think the pinout of my display matches with the picture on the wiki...
From what I gather from the spec sheet, i'll have to ground pin 19 and 20 to set it to 4-wire serial... But the rest some don't match?
Pin 1 and 2 remain the same as the picture...
Pin 3 no connect, but looks like I need to ground pin 6 ?
Need help for the rest...
This is the display :
https://www.newhavendisplay.com/specs/N ... 64UCY2.pdf
EDIT pinout for display that works with ESP8266 NodeMCU :
Pin 1 : GND
Pin 2 : +3V
Pin 3 : NC
Pin 4 : D2
Pin 5 : GND
Pin 6 : GND
Pin 7 : D5
Pin 8 : D7
Pin 9 : NC
Pin 10 : GND
Pin 11 : GND
Pin 12 : GND
Pin 13 : GND
Pin 14 : GND
Pin 15 : NC
Pin 16 : D1
Pin 17 : D8
Pin 18 : NC
Pin 19 : GND
Pin 20 : GND
You do not have the required permissions to view the files attached to this post.
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Specifically, writing a " " (space) character doesn't create a blank area under it no matter which font type I use. I was hoping to do this so I could wipe part of the screen - not the whole thing with "cls".
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Weird, this works for me. Tested from the Arduino Serial Monitor under Windows.
Did you update the Arduino Programm to the latest version after I added the new fonts?
Anyway, I will try to add a command to to draw rectangles filled/unfilled in front or background colour.
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Does is work?stefer09 wrote: ↑Fri Jun 18, 2021 10:01 pm EDIT : figured it out, see bottom for pinout for this display, if anyone purchases from digikey, mouser etc... and uses it with ESP8266 NodeMCU
…
This is the display :
https://www.newhavendisplay.com/specs/N ... 64UCY2.pdf
Nice that you have the possibility to set the Display-Mode via MCU.
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Yes! It works!venice wrote: ↑Sat Jun 19, 2021 11:56 amDoes is work?stefer09 wrote: ↑Fri Jun 18, 2021 10:01 pm EDIT : figured it out, see bottom for pinout for this display, if anyone purchases from digikey, mouser etc... and uses it with ESP8266 NodeMCU
…
This is the display :
https://www.newhavendisplay.com/specs/N ... 64UCY2.pdf
Nice that you have the possibility to set the Display-Mode via MCU.
Here is the connection schema if you want to add it to the website/wiki!
(Actually I'll try to put it on git and do a pull request)
Yeah it's nice to set it via MCU, didnt see myself unsoldering and resoldering those tiny resistors... But I'm sure the display is more costly though
Paid 51$ Canadian 4 days ago, now they brought them up to 62$ Canadian
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Update USB-Version
Adding "GEOOUTXY" Command
Draw/Clear Geometric Figures (Pixel, Line, Frame, Box (Filled Frame), Circle, Disc (Filled Circle), Ellipse, Filled Ellipse, Rounded Frame, Rounded Box)
Example/Command Order:
Draw Example
Clear Example
The Command-Parameter Format is "g,c,x,y,i,j,k"
Geometric Type
Pixel:
x,y = Position of the Dot
Line:
x,y = x0,y0 Line Startposition, i,j = x1,y1 Line Endposition
Frame and Box:
x,y = Left-Upper-Corner of Frame/Box, i,j = Frame/Box width & height, k = Corner Radius for Geometric 9/10
Circle and Disc:
x,y = Center of Circle/Disc, i = Radius
Ellipse:
x,y = Center of Ellipse, i,j = Radius in x,y direction
Adding "GEOOUTXY" Command
Draw/Clear Geometric Figures (Pixel, Line, Frame, Box (Filled Frame), Circle, Disc (Filled Circle), Ellipse, Filled Ellipse, Rounded Frame, Rounded Box)
Example/Command Order:
Draw Example
Code: Select all
1: echo "att" > /dev/ttyUSB0
2: echo "GEOOUTXY" > /dev/ttyUSB0
3: echo "3,1,20,10,30,20,0" > /dev/ttyUSB0 (Draw Frame starting at x=20, y=10 with width 30 and height=20)
Clear Example
Code: Select all
1: echo "att" > /dev/ttyUSB0
2: echo "GEOOUTXY" > /dev/ttyUSB0
3: echo "4,0,20,10,30,20,0" > /dev/ttyUSB0 (Clear Box starting at x=20, y=10 with width 30 and height=20)
The Command-Parameter Format is "g,c,x,y,i,j,k"
Code: Select all
g = Geometric Type 1..10 see Geometric Type list
c = Draw Color 0=Clear, 1=Draw, 2=XOR/Invert Pixel
x = X-Position 0..255
y = Y-Position 0..63
i = Variable Parameter 1 (Function depends on Geometric)
j = Variable Parameter 2 (Function depends on Geometric)
k = Variable Parameter 3 (Function depends on Geometric)
Geometric Type
Code: Select all
1: Pixel need x,y see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawpixel
2: Line need x,y,i=x1,j=y1 see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawline
3: Frame need x,y,i=width,j=height see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawframe
4: Box (Filled Frame) need x,y,i=width,j=height see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawbox
5: Circle need x,y,i=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawcircle
6: Disc (Filled Circle) need x,y,i=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawdisc
7: Ellipse need x,y,i=radiusx,j=radiusy see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawellipse
8: Filled Ellipse need x,y,i=radiusx,j=radiusy see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawfilledellipse
9: Rounded Frame need x,y,i=width,j=height,k=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrframe
10: Rounded Box need x,y,i=width,j=height,k=radius see https://github.com/olikraus/u8g2/wiki/u8g2reference#drawrbox
x,y = Position of the Dot
Line:
x,y = x0,y0 Line Startposition, i,j = x1,y1 Line Endposition
Frame and Box:
x,y = Left-Upper-Corner of Frame/Box, i,j = Frame/Box width & height, k = Corner Radius for Geometric 9/10
Circle and Disc:
x,y = Center of Circle/Disc, i = Radius
Ellipse:
x,y = Center of Ellipse, i,j = Radius in x,y direction
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
I think "GEOOUTXY" and "Clear Box" is the right thing for you
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Great, another running tty2oled
Can I use this picture for the Gallery?
Already Online
https://github.com/venice1200/MiSTer_tt ... Electrical
More than double of the price for my display.
But I don't think yours is from Ali... ?
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Yes!
venice wrote: ↑Sat Jun 19, 2021 5:45 pm Already Online
https://github.com/venice1200/MiSTer_tt ... Electrical
From Digikey
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Can't figure out how to do pull requests for wiki edits... not sure it's possible on git, anyway, this would be my changes for the Arduino-HowTo-(Windows).md page :
It's the line :
For ESP8266 , add ` https://arduino.esp8266.com/stable/pack ... index.json`
Code: Select all
Add `https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json`
to **"Additional Boards Manager URL's"**
For ESP8266 , add ` https://arduino.esp8266.com/stable/package_esp8266com_index.json`
Enable at **"Show verbose output during:"** the options **"compilation"** and **"upload"**.
For ESP8266 , add ` https://arduino.esp8266.com/stable/pack ... index.json`
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Me too, no Idea.
ESP8266 Text and your new Pictures added to Github or pull requests confirmed.
Many Thx
//Edit
stefer09’s Pictures for Dig Dug, Galaga, Space Invaders and Penguin-Kun Wars are now available through the tty2oled Updater.
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Just trying to give a little back here to all the work that Venice has done.
Please find a few XBM files I made this evening that maybe of use.
- Space Invaders
- Space Invaders - Part II
- Rally X
XBM Files ( as above are PNG pictures )
Please find a few XBM files I made this evening that maybe of use.
- Space Invaders
- Space Invaders - Part II
- Rally X
XBM Files ( as above are PNG pictures )
You do not have the required permissions to view the files attached to this post.
Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
You inspired me with that 8BitDo.
Had to get one ( and do a little swap of some buttons and the stick ), what a lovely bit of kit.
I also disconnected the power from the symbols that appear by the buttons and updated the firware from ( https://support.8bitdo.com/ultimate/arcade_stick.html ) which allows you to assign a keyboard button to P1 and P2 so they can now be used with the MiSTer as they are seen as a keypress.
My updated stick...
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Your Pictures, except Space Invaders which was already created by stefer09 yesterday,
and 3 new ones by stefer09 (Dig Dug 2, Game of Life and 1942) are now available at Github for the Updater.
I added your RAR File to Github as well.
Many Thanks
//Edit
I added your Space Invaders as invaders_alt.xbm to the Repository.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
stefer09 created Graphic Versions of 280-ZZZZAP, Amidar, AY-3-8500.xbm and Ballon Bomber.
If my calculation is correct we have now exactly 300 cores supported with Graphic or Text based Pictures.
Thx to all picture contributors
If my calculation is correct we have now exactly 300 cores supported with Graphic or Text based Pictures.
Thx to all picture contributors
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Here is 301 for consideration.
Spy Hunter
Spy Hunter
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Is online.
If someone like to run an "Testing Version" take a look here:
https://github.com/venice1200/MiSTer_tt ... SB_Testing
It brings "Over The Air" (OTA) Update Capabilities to your ESP32 and some updates for "Commands".
If your ESP32 is in "Over The Air" Mode you should see an new Network Port in the IDE which can be used for further Updates.
You do not have the required permissions to view the files attached to this post.
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
INI File Update available
INI Option "OVERWRITE" was renamed to "OVERWRITE_PICTURE".
stefer09 added US-Naming based XBM Pictures and an new INI Option "USE_US_PICTURE" to enable the Download of them.
See https://github.com/venice1200/MiSTer_tt ... res/XBM_US
If you like the US Pictures set "USE_US_PICTURE" to "yes".
If there are Pictures available as "Normal" and "US" Version they will be downloaded twice each Update Cycle
if "USE_US_PICTURES" is set to "yes" and "OVERWRITE_PICTURE" is also set to "yes".
We are trying to solve the „double download“
INI Option "OVERWRITE" was renamed to "OVERWRITE_PICTURE".
stefer09 added US-Naming based XBM Pictures and an new INI Option "USE_US_PICTURE" to enable the Download of them.
See https://github.com/venice1200/MiSTer_tt ... res/XBM_US
If you like the US Pictures set "USE_US_PICTURE" to "yes".
If there are Pictures available as "Normal" and "US" Version they will be downloaded twice each Update Cycle
if "USE_US_PICTURES" is set to "yes" and "OVERWRITE_PICTURE" is also set to "yes".
We are trying to solve the „double download“
You do not have the required permissions to view the files attached to this post.
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
I picked up this 2-pack of in-line microUSB power switches so I can turn my tty2oled screen on and off independently from the MiSTer. Thought it might be of interest to some of you!
https://www.amazon.com/dp/B077JYXZLL/
https://www.amazon.com/dp/B077JYXZLL/
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Picture Update
stefer09 moved the TurboGrafx16 Logo to the XBM_US Pictures and added an PCEngine Picture to XBM.
//Edit
stefer09 added Graphic Versions of Armored Car, Atlantis 2 and Beastie Feastie.
All Pictures available through the Updater or from
https://github.com/venice1200/MiSTer_tt ... ctures/XBM
https://github.com/venice1200/MiSTer_tt ... s/XBM_Text
https://github.com/venice1200/MiSTer_tt ... res/XBM_US
//Edit 2
stefer09 added new Pictures 1943, 1943 Kai, 1943 JPN, 1943 Mark II and Graphic Versions for Bezerk and BigKong.
Many Thanks
305
stefer09 moved the TurboGrafx16 Logo to the XBM_US Pictures and added an PCEngine Picture to XBM.
//Edit
stefer09 added Graphic Versions of Armored Car, Atlantis 2 and Beastie Feastie.
All Pictures available through the Updater or from
https://github.com/venice1200/MiSTer_tt ... ctures/XBM
https://github.com/venice1200/MiSTer_tt ... s/XBM_Text
https://github.com/venice1200/MiSTer_tt ... res/XBM_US
//Edit 2
stefer09 added new Pictures 1943, 1943 Kai, 1943 JPN, 1943 Mark II and Graphic Versions for Bezerk and BigKong.
Many Thanks
305
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Finished my 3D-printed case today. Just wanted to say thank you.
You do not have the required permissions to view the files attached to this post.
Find my projects on Github: https://github.com/dtimber/
- venice
- Top Contributor
- Posts: 744
- Joined: Tue Jun 16, 2020 9:29 am
- Location: Germany
- Has thanked: 268 times
- Been thanked: 264 times
Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
You are welcome
Your case looks good!
Did you share your case design somewhere?
Did you use one of the PCBs or how did you build it?
And can I use the picture for the gallery?