Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:16 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : i2c to 44780 LCD. Digit suppression.

Author Message
jsand
Newbie

Joined: 02/07/2014
Location: South Africa
Posts: 15
Posted: 12:42pm 25 Feb 2018
Copy link to clipboard 
Print this post

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 Africa
Posts: 15
Posted: 12:48pm 25 Feb 2018
Copy link to clipboard 
Print this post

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: Thailand
Posts: 2209
Posted: 02:39pm 25 Feb 2018
Copy link to clipboard 
Print this post

[code]
a$ = right$(" " + a$, 5)
[/code]

Microblocks. Build with logic.
 
jsand
Newbie

Joined: 02/07/2014
Location: South Africa
Posts: 15
Posted: 02:56pm 25 Feb 2018
Copy link to clipboard 
Print this post

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: Thailand
Posts: 2209
Posted: 03:30pm 25 Feb 2018
Copy link to clipboard 
Print this post

http://geoffg.net/micromite.html
Microblocks. Build with logic.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025