This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: Interfacing SSD1306 OLED display using i2c

Part Number: CC2640R2F


Tool/software: TI-RTOS

Hello,

 Is it possible to change the Display Language shown in the OLED interfaced to the CC2652 Board ??

I saw the list of languages in grlib.h, but did not see any APIs to change the language in Simplelink Graphics Library.

Also, how would I be able to use another format like UTF-8 for the characters? I don't think the TI Graphics Library identifies any other format other than the ASCII. So how is it possible??

Thanks & regards,

Shyam

  • Hi Shyam,

    I can't find anything in code suggesting that this supported, I will reach out to some colleges for clarification on this.

    On another note, is this thread for CC2640R2F or CC2652? It would be great if you could keep the device name specific across the thread title, content and tags as this makes it easier to support.
  • Thanks M-W:)

    The device is CC2652R1F. But my question is related to the display driver. So I did not want to create another similar thread.
    Just to clarify my query:
    I have interfaced the SH1107 display controller with the CC2652R1F Launchpad. I tried creating the display driver for the same using the examples and the Graphics library user guides. I see that in order to display a string, the fonts that the Graphics Library provides are all in ASCII. It is Okay if I want to display the Messages/Data onto the OLED in ASCII English characters.
    But, suppose I want to change the language to be displayed to say Chinese, Japanese or Arabic. These would require more codepoints than ASCII. Which in turn, would require me to use another format like UTF-8 to describe the glyphs for the fonts.
    I wanted to know if this is possible? And how it can be done? How can the glyphs and the fonts be obtained for UTF-8. Like I mentioned before, the fonts provided by the TI graphics library are all ASCII.

    Regards,
    Shyam
  • Hello All,

    I came across the tool called ftrasterize that generates the font files for  any Truetype Fonts.

    Will that help me with the requirement mentioned in my previous post.

    If I download the required font file and then using ftrasterize, generate the font files for that language, would it be possible for me to use it in the application using Graphics_setFont()

    "But, suppose I want to change the language to be displayed to say Chinese, Japanese or Arabic. These would require more codepoints than ASCII. Which in turn, would require me to use another format like UTF-8 to describe the glyphs for the fonts."

    So, say if it is Chinese, would ftrasterize generate the font in UTF-8 format. So that if a UTF-8 format input is provided to the TI graphics Library (say, using Display_printf()) and in turn to the display controller SH1107, it would display the corresponding characters in that language.

    Regards,

    Shyam

  • Hello All,

    Is the requirements that I mentioned not possible on the CC2652R1 Launchpad using the SimpleLink SDK?

    Regards,
    Shyam

  • Hi Shyam,

    It seems the grlib do not support "selecting the language" using these defines. What you would have to do is to define your own font (which you already seem to be thinking about), you could reference the fonts that is shipped to see how they are defined (<SDK>\source\ti\grlib\fonts).

    You would have to use the "Graphics_FontEx" type to define your font (defining what is the first and last character) to make it possible for grlib to decode the font. In the English fonts for example, "first" is 32 and "last" is 126.

    One thing to keep in mind when using "special characters" is to make sure the compiler you use can support these.