nova-x icon indicating copy to clipboard operation
nova-x copied to clipboard

Hi , are u considering writing a Chinese UI for this SSD1306 OLED ? Please

Open XMG114514 opened this issue 1 year ago • 67 comments

ENGLISH UI is unhelp for Chinese

XMG114514 avatar May 30 '25 06:05 XMG114514

i dont know about chinese

warwick320 avatar May 30 '25 15:05 warwick320

I tried to change the code related to ssd1306 to u8g2, but after trying for a long time, it always got an error. Do you know about this u8g2 library? If you know how to write it, I can tell you where to write Chinese? I really need a Chinese interface. Thank you

XMG114514 avatar May 30 '25 16:05 XMG114514

This is my first Arduino project and challenge, so I don't know about other libraries. But I'll positively consider it because I've been thinking about switching to the u8g2 library before updating the screen animation.

warwick320 avatar May 31 '25 11:05 warwick320

wow , thank u bro. I'm looking forward to your screen animation. If you encounter any problems with Chinese when considering updating U8g2, maybe I can help you

XMG114514 avatar May 31 '25 12:05 XMG114514

I tried to use the U8g2 library to support Chinese characters, but the font size for Chinese is too large, so I would have to rewrite the layout code from the beginning. Unfortunately, I don’t have time to rework the design right now. I’ll try it again when I have some free time.

warwick320 avatar Jun 02 '25 09:06 warwick320

Emm.If you feel it's too big or not suitable for you, you can send me the code you tried and I will try to optimize it. If successful, I will send it back to you. I believe there will be many people who like it. Let's solve the problem together!

XMG114514 avatar Jun 02 '25 09:06 XMG114514

Okay. I'll try this weekend and if it doesn't work I'll send you what I tried.

warwick320 avatar Jun 02 '25 10:06 warwick320

ok. thank u bro~. QwQ

XMG114514 avatar Jun 02 '25 10:06 XMG114514

If I can just adjust the font size for Chinese characters, I think I can quickly switch to the U8g2 library. I've already rewritten the draw_menu function using U8g2, and it was successful.

warwick320 avatar Jun 03 '25 08:06 warwick320

It's easier than I expected. However, there's one issue: when switching to the U8g2 library, I run into a problem with Realtek Board Manager (3.1.8). To resolve this, I need to downgrade the Board Manager, so I don't think I'll be able to use the WebUI function.

warwick320 avatar Jun 03 '25 08:06 warwick320

Can you send me the code for successfully using u8g2? I couldn't find it in your open-source project. Maybe we can add an email communication method? This way of communication will be much more convenient

XMG114514 avatar Jun 03 '25 08:06 XMG114514

Are you saying that screen and web backend management can only be used simultaneously? Otherwise, it will go wrong? I have a person in China who has developed firmware that can be used for both the screen and backend, but he has not opened it up. Here, I only have his bin file. If you need it, I can send it to you. Perhaps you can analyze how he achieved it by viewing the source code of his webui? If it doesn't work, then I'm sorry. I don't know much and I want to try my best to help you solve the problem of using both

XMG114514 avatar Jun 03 '25 08:06 XMG114514

No. In Realtek board manager 3.1.8, there's a code issue where using Wire.begin(); or u8g2.begin(); causes errors and prevents the code from working. I don't know why, but if I downgrade the version to 3.1.5, it works. However, with 3.1.5, there's a code problem where I can't retrieve the IP address when trying to connect to the BW16 board AP. So if I downgrade to 3.1.5, the webui function becomes unusable due to this coding issue

warwick320 avatar Jun 03 '25 09:06 warwick320

Oh, I was confused. There's no problem with u8g2.begin(). It should be able to support the webui function.

warwick320 avatar Jun 03 '25 10:06 warwick320

Okay, since it can be used normally, when do you plan to update your open source code and release the u8g2 version? Or something else?

XMG114514 avatar Jun 03 '25 10:06 XMG114514

I've finished making the u8g2 version, but there are still issues with render text when using Chinese characters, so I'll fix that and likely release it within this week.

warwick320 avatar Jun 03 '25 10:06 warwick320

The only problem now is the display of Chinese characters on the screen? Has everything in the backend been resolved? So it seems like you're really great, qwq

XMG114514 avatar Jun 03 '25 10:06 XMG114514

Would it be convenient for you to accept pictures? I have a project here that uses u8g2 and can display Chinese characters normally. Maybe you can take a look?

XMG114514 avatar Jun 03 '25 10:06 XMG114514

Displaying Chinese characters is easy, but the character width and roundrect width are different from the original, so I think I just need to fix that.

warwick320 avatar Jun 03 '25 10:06 warwick320

good Can you update the open source project recently or are you free this weekend?

XMG114514 avatar Jun 03 '25 10:06 XMG114514