32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
How to print the Omega symbol using sprintf?
TEP , The Engineering Projects , Calender Question: 06-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
Hi,
I have this code that works OK.
==============================================
char cstr[40];
sprintf(cstr, "Contact Resistance : %d, ", contact_resistance); //format string
write_lcd_line4(cstr, 1); //Write to LCD
===================================================

It displays "Contact Resistance: 12345".
I would like to print " Contact Resistance: 12345 <OMEGA symbol>"
I am using MPLAB X.
Any idea please?
TEP , The Engineering Projects , Icon Answer: 1 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon

RE:

How to print the Omega symbol using sprintf?
TEP , The Engineering Projects , Calender Comment: 14-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
There are two ways to do that.
[list]
  • One is you find the ascii code of omega and then print it on.
  • [/list]
    [list]
  • Another way is that you design a special character and then print it on LCD.
  • [/list]
    I will share the special character display on LCD soon.
    TEP , The Engineering Projects , Tick Correct Answer
    Comment Bio
    TEP , The Engineering Projects , Tags
    PLC
    Robot
    STM32
    Arduino
    AI
    ESP32
    Ladder Logic
    PLC Projects
    Programming
    Communicates STM32
    PLC Projects
    Communicates PLC
    Font Style
    Alignment
    Indenting and Lists
    Insert Media
    Insert Items

    Want to leave an answer!

    Word Count :0 Draft Saved at 12:42 am.