Products > Programming

Peter Fleury LCD library

(1/2) > >>

Simon:
http://homepage.hispeed.ch/peterfleury/doxygen/avr-gcc-libraries/group__pfleury__lcd.html

which of the functions listed at the bottom am I using to send a number or rather a variable value?

void lcd_data    (    uint8_t     data   )    ?

madires:
That library doesn't include a function to display a number. So you have to convert the number/value into a string first, and then call lcd_puts() to display the string.

Simon:
Ah, I thought so. So I need to do something like keep dividing the number by 10 to get each digit and then add the values to the ASCII code for "0" so that I send the digits in ASCII to the screen.

Whales:
Depending on what micro & development environment you are using: you may also have access to some form of standard library with sprintf()/snprintf() or similar.

Simon:
Atmel studio

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod