Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to show a float number on a text LCD....

Status
Not open for further replies.

kit_714

Member level 4
Joined
Jul 5, 2006
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,011
Hi All,

i am now playing with SHT75 humidity and temperature sensor and got the temperature and RH reading in float number format. However, how can i show the result on the text LCD?

Thanks in advanced.

Kit
 

kit,
if you are using C (which I assume) you can use the fprintf function (sometimes this function differs slightly from the ANSI C standard, but your compiler doc should clarify this). Normally it is included in stdio.h. Using the fprintf function you can use modifiers or type specifiers to automatically convert the datatype. this would then look something like

fprintf(*Buffer, %f, float_value)

where *Buffer is a memory location that you simply swap to the LCD screen.

Hope this helps,
Cheers
Slayer
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top