2.42" 128x64 I2C OLED screen

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Tue Mar 12, 2019 12:45 am

solarmon wrote:
Tue Mar 12, 2019 12:36 am
Jeff wrote:
Tue Mar 12, 2019 12:18 am
i think that a signal is floating somewhere... What about the "DC" pin ?
I had left DC floating - sorry, I thought I had mentioned this, probably only in the EAB forum post. :oops:

I had needed to connect this when using - so I didn't consider this.

So I connected DC to a GND pin - the JB one.....and....it's working, perfectly!! :D

I am so sorry that I did not mention that DC is floating. I've wasted a lot of your time. :cry:
No no problem, this was an good support exercise ;).

Will update the custom firmware page with the new screen support and some more options. Please test it carefully once available (in some minutes or tomorrow)

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Tue Mar 12, 2019 12:50 am

solarmon wrote:
Tue Mar 12, 2019 12:36 am
Jeff wrote:
Tue Mar 12, 2019 12:18 am
i think that a signal is floating somewhere... What about the "DC" pin ?
I had left DC floating - sorry, I thought I had mentioned this, probably/possibly only in the EAB forum post. :oops:

I had not needed to connect this when using - so I didn't consider this.

So I connected DC to a GND pin - the JB one.....and....it's working, perfectly!! :D

I am so sorry that I did not mention that DC is floating. I've wasted a lot of your time. :cry:
Btw can you try to connect the RES to VCC ? (3.3V)
i will restore the buzzer function.

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Tue Mar 12, 2019 1:00 am

Jeff wrote:
Tue Mar 12, 2019 12:50 am
Btw can you try to connect the RES to VCC ? (3.3V)
i will restore the buzzer function.
Yes, but RES needs to connect to VCC (5V or 3.3V) via a pullup resistor - so it cannot connect to VCC directly. That is why the RST, RX, TX Pins seems to be suitable/working since they are already connected to to VCC via internal pullup resistors in the STM32F105 chip. Or, with my setup, I can use the L3/L4/L5 anode holes (since I put header pins in them instead) which has a 1K resistor to 3.3V.

EDIT: Another option, which I have tested and it works, is to use a header pin jumper to connect DC to CS (which, in my case, is already bridged to GND using R18).
Last edited by solarmon on Tue Mar 12, 2019 1:32 am, edited 1 time in total.

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Tue Mar 12, 2019 1:30 am

New firmware online for your screen : https://hxc2001.com/custom_fw/
You may also want to enable the 400khz i2c bus speed to have some smoother experiences with 128x64 screens.

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Tue Mar 12, 2019 2:06 am

Jeff wrote:
Tue Mar 12, 2019 1:30 am
New firmware online for your screen : https://hxc2001.com/custom_fw/
You may also want to enable the 400khz i2c bus speed to have some smoother experiences with 128x64 screens.
Thanks!

With the default font, the text is being doubled up.

I'm struggling to select an appropriate font that either does not double up, or is too big/wide.

Maybe the custom firmware page can somehow show examples of the font?

Image

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Tue Mar 12, 2019 11:16 am

solarmon wrote:
Tue Mar 12, 2019 2:06 am
Jeff wrote:
Tue Mar 12, 2019 1:30 am
New firmware online for your screen : https://hxc2001.com/custom_fw/
You may also want to enable the 400khz i2c bus speed to have some smoother experiences with 128x64 screens.
Thanks!

With the default font, the text is being doubled up.

I'm struggling to select an appropriate font that either does not double up, or is too big/wide.

Maybe the custom firmware page can somehow show examples of the font?

Image
New update fixing the doubled lines :

https://hxc2001.com/custom_fw/

And i added the "Minimum row alignment" parameter to align the lines on the screen. On a 128x64 screen you can set 32 pixels to have the lines vertically justified.

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Tue Mar 12, 2019 11:43 am

Jeff wrote:
Tue Mar 12, 2019 11:16 am

New update fixing the doubled lines :

https://hxc2001.com/custom_fw/

And i added the "Minimum row alignment" parameter to align the lines on the screen. On a 128x64 screen you can set 32 pixels to have the lines vertically justified.
Thank you.

The double lines have indeed disappeared.

However, when I choose default font (6x13 font) and set Minimum row alignment to 32, the second row of text disappears and the font is missing alternate lines:

Image

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Tue Mar 12, 2019 11:46 am

solarmon wrote:
Tue Mar 12, 2019 11:43 am
Jeff wrote:
Tue Mar 12, 2019 11:16 am

New update fixing the doubled lines :

https://hxc2001.com/custom_fw/

And i added the "Minimum row alignment" parameter to align the lines on the screen. On a 128x64 screen you can set 32 pixels to have the lines vertically justified.
Thank you.

The double lines have indeed disappeared.

However, when I choose default font (6x13 font) and set Minimum row alignment to 32, the second row of text disappears and the font is missing alternate lines:

Image
According to the build order, you just haven't selected the right oled screen model :wink:

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Tue Mar 12, 2019 12:06 pm

Jeff wrote:
Tue Mar 12, 2019 11:46 am
According to the build order, you just haven't selected the right oled screen model :wink:
...indeed, I did! Oops! :oops:

Working perfectly now.

Thank you for your great support (and patience) and for such a brilliant Floppy Drive Emulator - keep up the great work! :D

Image

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Tue Mar 12, 2019 9:49 pm

I have made some screen shots of the some of the different fonts - see:

https://imgur.com/a/G1dwDua

The only ones that seem to really work well are the smaller fonts - especially the 8x16 ones (with minimum row alignment set to 32)

The larger ones are a problem - especially for the track/side line, as this does not scroll and can get truncated. This is also a problem using the menus as the menu titles and options/settings texts can get truncated and does not scroll.

For the smaller fonts, having a larger 128x64 screen is of not much benefit (in terms of content) as still only two lines of text is displayed. And the whole text is not centered vertically, so the space at the bottom of the screen is larger than at the top.

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Wed Mar 13, 2019 12:40 am

solarmon wrote:
Tue Mar 12, 2019 9:49 pm
I have made some screen shots of the some of the different fonts - see:

https://imgur.com/a/G1dwDua

The only ones that seem to really work well are the smaller fonts - especially the 8x16 ones (with minimum row alignment set to 32)

The larger ones are a problem - especially for the track/side line, as this does not scroll and can get truncated. This is also a problem using the menus as the menu titles and options/settings texts can get truncated and does not scroll.

For the smaller fonts, having a larger 128x64 screen is of not much benefit (in terms of content) as still only two lines of text is displayed. And the whole text is not centered vertically, so the space at the bottom of the screen is larger than at the top.
Thanks for your tests !

I have fixed the fonts with the glitches and added some 8x32 fonts to address the 128x64 screen usage issues.

i have also added some line alignment values too.
20190312_233444.jpg
20190312_233444.jpg (68.48 KiB) Viewed 588 times
https://hxc2001.com/download/floppy_dri ... _notes.txt

https://hxc2001.com/custom_fw/
solarmon wrote:
Tue Mar 12, 2019 9:49 pm
The larger ones are a problem - especially for the track/side line, as this does not scroll and can get truncated. This is also a problem using the menus as the menu titles and options/settings texts can get truncated and does not scroll.
Change the number of characters per lines in the General screen settings in these case.

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Wed Mar 13, 2019 11:28 am

Hi,

Thanks - I'll check it out tonight!

BTW - what 0.96" OLED screen you using? I have two 0.96" OLED (one 4-pin and one 6-pin) screens that I can't get working.

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Wed Mar 13, 2019 10:27 pm

solarmon wrote:
Wed Mar 13, 2019 11:28 am
Hi,

Thanks - I'll check it out tonight!

BTW - what 0.96" OLED screen you using? I have two 0.96" OLED (one 4-pin and one 6-pin) screens that I can't get working.
i have 2 128x64 screens (one with a SSD1306 ic and another with SH1106). both are working with the hxc firmware. What is your model ? Some pictures ?

solarmon
Posts: 79
Joined: Tue Feb 26, 2019 9:38 am

Re: 2.42" 128x64 I2C OLED screen

Post by solarmon » Thu Mar 14, 2019 12:31 am

Jeff wrote:
Wed Mar 13, 2019 10:27 pm
i have 2 128x64 screens (one with a SSD1306 ic and another with SH1106). both are working with the hxc firmware. What is your model ? Some pictures ?
I'll create a separate post for my other screens.

I updated the gallery with a few more test pictures (with v3.1.40.3a in description):

https://imgur.com/a/G1dwDua

Some observations:

* Some of the fonts don't seem to scroll? (Scroll Speed is default = Normal)
* Some of the fonts are not vertically aligned - not sure whether this is just not selecting the right Minimum Row Alignment value.
* Font 12x23 (NEWDOS Uwe Sieber) seems to be messed up.

Jeff
Site Admin
Posts: 6338
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: 2.42" 128x64 I2C OLED screen

Post by Jeff » Thu Mar 14, 2019 12:33 am

solarmon wrote:
Thu Mar 14, 2019 12:31 am
* Some of the fonts don't seem to scroll? (Scroll Speed is default = Normal)
Already answered to this : you need to change the number of characters per line in the General screen settings section.

example : with a 16x20 font on a 128x32 screen you should set 128/16=8 characters per line.

Post Reply