Re: tty2oled Software Add-On with USB/SD Support (Show Text/Pictures based on loaded Core on Display)
Posted: Wed Jun 16, 2021 2:09 pm
The online community for MiSTer FPGA enthusiasts
https://misterfpga.org/
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.
Ok
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.
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)
Code: Select all
xxx = 3 Digits X-Position 000..255
yy = 2 Digits Y-Position 00..63
f = Font Type, see list above
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.
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!
Should do, just tested.
The Icon Font is also a Transparent one.
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)
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.
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
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.
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)
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)
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)
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
Great, another running tty2oled
Already Online
More than double of the price for my display.
Yes!
venice wrote: ↑Sat Jun 19, 2021 5:45 pm Already Online
https://github.com/venice1200/MiSTer_tt ... Electrical
From Digikey
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"**.
Me too, no Idea.
You inspired me with that 8BitDo.
Your Pictures, except Space Invaders which was already created by stefer09 yesterday,
Is online.