PIC Microcontroller Projects DISCUSSION

How to print the Omega symbol using sprintf?

Started by syedzainnasir How to print the Omega symbol using sprintf?
1 replies 248 views 2 participants
Latest activity · 06 Mar 2017

How to print the Omega symbol using sprintf?

syedzainnasir PIC Microcontroller Projects Forum
#1
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?

Community replies 1

Re: How to print the Omega symbol using sprintf?

#2
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 COMMUNITY