How to print the Omega symbol using sprintf?

You can post your problem related to PIC Microcontroller Projects here. We will try our best to help you out.
Post Reply
Dillon
Posts: 12
Joined: Sat Feb 18, 2017 5:48 am

How to print the Omega symbol using sprintf?

Post by Dillon » Mon Mar 06, 2017 10:57 am

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?

theenggprojects
Site Admin
Posts: 25
Joined: Tue Feb 07, 2017 12:51 pm

Re: How to print the Omega symbol using sprintf?

Post by theenggprojects » Tue Mar 14, 2017 1:42 pm

There are two ways to do that.
  • One is you find the ascii code of omega and then print it on.
  • Another way is that you design a special character and then print it on LCD.
I will share the special character display on LCD soon.

Post Reply