|
Forum Index : Microcontroller and PC projects : i2c to 44780 LCD. Digit suppression.
| Author | Message | ||||
| jsand Newbie Joined: 02/07/2014 Location: South AfricaPosts: 15 |
Hello All, My newest problem, but I think someone will have a quick pointer to sort this. I have a umite driving i2clcd to a 44780 type display all running fine. I read data from a TC514 ADC (also i/f by i2c) which produces a 5digit free-running result for presentation on the display. The integer can be 0 - 17000. Using the umite command:- lcdi2c (4,8,a$) gives me the result with the most significant digit starting at column 8. The value will not always stay at 5 significant digits (1,,350,,54,,16544) so I have to remove or clear the redundant trailing digits when the value reverts from 5 digits to a lesser number. Given the display is 'working' it is nontheless unintelligible. What to do? rgds, John |
||||
| jsand Newbie Joined: 02/07/2014 Location: South AfricaPosts: 15 |
I think I am asking for 'right justification' for the char display. This can be done for the console (PRINT expr) but I don't see how to go about it for the LCD. rgds, John |
||||
MicroBlocks![]() Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
[code] a$ = right$(" " + a$, 5) [/code] Microblocks. Build with logic. |
||||
| jsand Newbie Joined: 02/07/2014 Location: South AfricaPosts: 15 |
Mr. Microblocks, Thanks for the reply, it worked right off the ctrl-v ! It's what I love about this place - all the helpful folks and great answers! Might I ask where I can find a book/file/reference on all these obscure instructions? rgds, John |
||||
MicroBlocks![]() Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
http://geoffg.net/micromite.html Microblocks. Build with logic. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |