tty2oled Soft&Hardware Add-On (Shows Core based Pictures on a Display)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Tue Jun 15, 2021 7:32 am How old is the Arduino Programm you have downloaded?
I downloaded it again today to be sure. Confirmed the lines you mentioned are present.
venice wrote: Tue Jun 15, 2021 7:32 am If that's the case change the cables at the terminals 5 + 17 (Blue +White) or the two cables at the Display side. The others are looking good.

Code: Select all

Terminal 5  = Display Pin 16
Terminal 17 = Display Pin 15
Set the Arduino IDE to "Wemos Lolin32" and upload the program.

If the Program and the ESP are OK you should see at least "MiSTer FPGA by Sorgelig" after Power on.

//Edit
I think we have to change the electrical's for Devkitc and Lolin32.
Yup! Once I switched the blue and cyan/white wires on the screen it worked immediately.

So here is a test solderless option for the lazy/incompetent! :lol:
User avatar
RealLarry
Top Contributor
Posts: 770
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 89 times
Been thanked: 333 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by RealLarry »

Mellified wrote: Tue Jun 15, 2021 2:36 pm
venice wrote: Tue Jun 15, 2021 7:32 am I think we have to change the electrical's for Devkitc and Lolin32.
Yup! Once I switched the blue and cyan/white wires on the screen it worked immediately.
So here is a test solderless option for the lazy/incompetent! :lol:
Fix to git commited. Again, sorry for any confusion.
I like your terminal solution. Seems to make life easier if replugging wires a thousend times.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

RealLarry wrote: Tue Jun 15, 2021 2:58 pm I like your terminal solution. Seems to make life easier if replugging wires a thousend times.
Yeah, it make this fix a 2 second thing rather than having to re-solder.

@venice - So now that I have a working display I'm looking to add support for the tty2oled to MiSTer_SAM. The arbitrary text support should make it really easy to display the game/MRA name rather than the core name. A few issues I'm seeing though that may be easy to fix?
1. It would be better to have a fixed width font so I know how many characters can be displayed. Right now I can get 12 "W" on screen or up to ~18 narrower characters.
2. A two line display option would be interesting - show the core name on one and the game name on the other.
3. When text overflows the display the text is centered and truncated. Would it be possible to automatically scroll the text across the display? Even moving one character over each second might be sufficient.
4. Using 'echo "This is a fun game" > /dev/ttyUSB0' works - but the tty2oled daemon will overwrite when it notices /tmp/CORENAME has changed. I can run "/etc/init.d/S60tty2oled stop" when MiSTer_SAM runs, of course, but that could fail to restart if SAM doesn't exit cleanly. Is there a way to disable CORENAME monitoring temporarily? Or send arbitrary strings to the display with tty2oled? I tried '/usr/bin/tty2oled /dev/ttyUSB0 USB 921600 > "Donkey Kong"' for example.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Another working tty2oled, great :D
Mellified wrote: Tue Jun 15, 2021 3:34 pm @venice - So now that I have a working display I'm looking to add support for the tty2oled to MiSTer_SAM. The arbitrary text support should make it really easy to display the game/MRA name rather than the core name. A few issues I'm seeing though that may be easy to fix?
1. It would be better to have a fixed width font so I know how many characters can be displayed. Right now I can get 12 "W" on screen or up to ~18 narrower characters.
2. A two line display option would be interesting - show the core name on one and the game name on the other.
3. When text overflows the display the text is centered and truncated. Would it be possible to automatically scroll the text across the display? Even moving one character over each second might be sufficient.
4. Using 'echo "This is a fun game" > /dev/ttyUSB0' works - but the tty2oled daemon will overwrite when it notices /tmp/CORENAME has changed. I can run "/etc/init.d/S60tty2oled stop" when MiSTer_SAM runs, of course, but that could fail to restart if SAM doesn't exit cleanly. Is there a way to disable CORENAME monitoring temporarily? Or send arbitrary strings to the display with tty2oled? I tried '/usr/bin/tty2oled /dev/ttyUSB0 USB 921600 > "Donkey Kong"' for example.
Related to 1+2:
Did you try the new TEXTOUTXY Function from above?
See: viewtopic.php?p=27974&sid=f7599536876c9 ... 0d8#p27974

But this recommends an stopped tty2oled daemon
or usage after/between core change(s)
and the actual version of the Arduino Program.

The „standard“ Text output via the tty2oled daemon is just for showing the corename if no picture is available.

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

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Tue Jun 15, 2021 2:36 pm
So here is a test solderless option for the lazy/incompetent! :lol:
Could you make a picture for the gallery of your hardware setup showing something on the display.

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

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Tue Jun 15, 2021 4:27 pm Did you try the new TEXTOUTXY Function from above?
I saw it but didn't register the text sizing. I will disable the daemon and give that a shot!
venice wrote: Tue Jun 15, 2021 5:03 pm Could you make a picture for the gallery of your hardware setup showing something on the display.
Here you are!
MiSTer_SAM_tty2oled.png
You do not have the required permissions to view the files attached to this post.
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Tue Jun 15, 2021 4:27 pm Did you try the new TEXTOUTXY Function from above?
This is what I got so far. The animated GIF is low quality to get the file size down and the converter changed the text from blue to yellow for some reason, but hopefully it gets the idea across!
IMG_1029.gif
You do not have the required permissions to view the files attached to this post.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Tue Jun 15, 2021 8:25 pm This is what I got so far...
Looks good to me :)
Is this this something you can work with?

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

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

I had a bit of trouble with the spacing at first. The text starts at the bottom left of the pixel grid coordinates - not the top left as I’d assumed. Once I understood that it was pretty easy.

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.

Note I am disabling the daemon. Nothing to do with tty2oled but SAM lacks a consistent exit code block currently so I’ll need to refactor to ensure the daemon is re-enabled in all code paths.

Other than that the code is “done” after a few hours. I’d like to get some more testing from other tty2oled users. I’ll post when it’s ready.
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

OK, tty2oled support has been added to Super Attract Mode! You can download the files here:
https://github.com/mrchrisster/MiSTer_SAM

You will need to enable support in the MiSTer_SAM.ini - it is not on by default. Of course, tty2oled will display the corename as usual if you don't enable this support.

Please post any issues to the SAM thread here:
viewtopic.php?f=29&t=2493
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Wed Jun 16, 2021 1:54 pm OK, tty2oled support has been added to Super Attract Mode!
Great, I will try later.

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

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Wed Jun 16, 2021 1:06 pm I had a bit of trouble with the spacing at first. The text starts at the bottom left of the pixel grid coordinates - not the top left as I’d assumed. Once I understood that it was pretty easy.
Jepp, that's my standard setting.
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.
It looks to me the fonts I added are "transparent" fonts and don't overwrite the background.
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.
Mellified wrote: Wed Jun 16, 2021 1:06 pm Note I am disabling the daemon. Nothing to do with tty2oled but SAM lacks a consistent exit code block currently so I’ll need to refactor to ensure the daemon is re-enabled in all code paths.
Ok

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

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Wed Jun 16, 2021 2:48 pm I can add some fonts for you if you like, we have enough space in the ESP.
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.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

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.
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 .

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)
Font Size Values are Width x Height and the Height for Character A

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
If we need more fonts I have to change "f" from 1 to 2 digits.

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.
I hope this helps :D

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

User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Thu Jun 17, 2021 1:36 pm I hope this helps :D
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!
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Fri Jun 18, 2021 6:18 am Unfortunately the new fonts don't overwrite existing ones it seems.
Should do, just tested.
Example:
IMG_7042_small.jpg
Mellified wrote: Fri Jun 18, 2021 6:18 am ...I also tried using the symbolic font, but those didn't overwrite either.
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.

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

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

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]".

Code: Select all

x = X-Position 0..255
y = Y-Position 0..63 
f = Font Type 0..10
Enabled Font 10

Code: Select all

10: u8g2_font_lucasarts_scumm_subtitle_o_tf (Nice 12 Pixel Font, Transparent)

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

stefer09
Posts: 23
Joined: Fri Jun 18, 2021 9:55 pm
Has thanked: 11 times
Been thanked: 1 time

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by stefer09 »

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?

Zo3EmTc.png

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.
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Mellified »

venice wrote: Fri Jun 18, 2021 7:22 am
Mellified wrote: Fri Jun 18, 2021 6:18 am Unfortunately the new fonts don't overwrite existing ones it seems.
Should do, just tested.
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".
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Sat Jun 19, 2021 3:23 am 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".
Weird, this works for me. Tested from the Arduino Serial Monitor under Windows.
IMG_7044.jpg
IMG_7045.jpg
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.

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

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

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
Does is work?
Nice that you have the possibility to set the Display-Mode via MCU.

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

stefer09
Posts: 23
Joined: Fri Jun 18, 2021 9:55 pm
Has thanked: 11 times
Been thanked: 1 time

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by stefer09 »

venice wrote: Sat Jun 19, 2021 11:56 am
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
Does is work?
Nice that you have the possibility to set the Display-Mode via MCU.
Yes! It works!

OXuRWTa.png

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)

cUQCz7X.jpeg

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.
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

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

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
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

IMG_7046.jpg
IMG_7048.jpg
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: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

Mellified wrote: Sat Jun 19, 2021 3:23 am I was hoping to do this so I could wipe part of the screen - not the whole thing with "cls".
I think "GEOOUTXY" and "Clear Box" is the right thing for you :D

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

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

stefer09 wrote: Sat Jun 19, 2021 2:16 pm Yes! It works!
Great, another running tty2oled :D
Can I use this picture for the Gallery?
stefer09 wrote: Sat Jun 19, 2021 2:16 pm Here is the connection schema if you want to add it to the website/wiki!
Already Online :)
https://github.com/venice1200/MiSTer_tt ... Electrical
stefer09 wrote: Sat Jun 19, 2021 2:16 pm But I'm sure the display is more costly though :(
Paid 51$ Canadian 4 days ago, now they brought them up to 62$ Canadian :(
More than double of the price for my display.
But I don't think yours is from Ali... ?

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

stefer09
Posts: 23
Joined: Fri Jun 18, 2021 9:55 pm
Has thanked: 11 times
Been thanked: 1 time

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by stefer09 »

venice wrote: Sat Jun 19, 2021 5:45 pm Great, another running tty2oled :D
Can I use this picture for the Gallery?
Yes!
venice wrote: Sat Jun 19, 2021 5:45 pm Already Online :)
https://github.com/venice1200/MiSTer_tt ... Electrical
venice wrote: Sat Jun 19, 2021 5:45 pm More than double of the price for my display.
But I don't think yours is from Ali... ?
From Digikey
stefer09
Posts: 23
Joined: Fri Jun 18, 2021 9:55 pm
Has thanked: 11 times
Been thanked: 1 time

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by stefer09 »

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 :

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"**. 
It's the line :

For ESP8266 , add ` https://arduino.esp8266.com/stable/pack ... index.json`
User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by venice »

stefer09 wrote: Sat Jun 19, 2021 6:20 pm 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 :
...
Me too, no Idea.

ESP8266 Text and your new Pictures added to Github or pull requests confirmed.
Many Thx :D

//Edit
stefer09’s Pictures for Dig Dug, Galaga, Space Invaders and Penguin-Kun Wars are now available through the tty2oled Updater.

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

Reg
Posts: 120
Joined: Mon Mar 22, 2021 11:38 am
Has thanked: 62 times
Been thanked: 31 times

Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Reg »

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.
invaders.png
- Space Invaders
invadpt2.png
- Space Invaders - Part II
rallyx.png
- Rally X
xbm files.rar
XBM Files ( as above are PNG pictures )
You do not have the required permissions to view the files attached to this post.
Reg
Posts: 120
Joined: Mon Mar 22, 2021 11:38 am
Has thanked: 62 times
Been thanked: 31 times

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Unread post by Reg »

Jukk@M wrote: Wed Apr 28, 2021 8:28 am MiSTer and tty2oled in a new home (HDTHUNDER HD5521SR).
1.jpg
2.jpg
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...
8bitDuo.png
You do not have the required permissions to view the files attached to this post.
Post Reply