|
Not to worry I solved the original problem and as is the case meant something else broke, bodged that. Now being left over night to see what breaks next... The LCD driver is a pain yes, you can send it an integer or float but will display a decimal point? Some times yes some times no, and will it return I2C address? (so I can hook up a real time clock that use I2C) No is the answer. Shall I try to get the data sheet, oh company went bust and some genius bought a load of LCD's on Ebay... Circuit diagrams, who needs those!
Glenn (I need )
|
|
|
|
|
You're probably using a crappy graphics driver.
I have one that may work better for you depending on the type of MCU you're using, but your best bet is to actually use
sprintf(tmp,"formatspecifier",value);
and then display tmp so you have total control over the formatting of it.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Quote: You're probably using a crappy graphics driver.
Graphics Driver I wish, No RTOS a while(1) or a for(;;)...
Quote: sprintf(tmp,"formatspecifier",value);
I would have to load stdio for sprintf()... no room. Think it's the I2C having a bit of noise. Will play more tomorrow.
Thanks Glenn
|
|
|
|
|
I meant the library you're using to communicate to your I2C or SPI display.
Clearly, I don't know enough about your platform.
It might be simpler to just roll your own ftoa type function
To err is human. Fortune favors the monsters.
|
|
|
|
|
Interesting...get the scope on the pins lots of noise I think the fault is with the board, I'm gonna start probing... Also know of a good I2C reference...
|
|
|
|
|
Check the values of the pullup resistors. Too low and the drivers can't sink the current. Too high and they can't deal with the capacitance of the wires (sounds like you must have wires to an off-board display). You might try twisting wires, too, thought that's more to keep radiated noise out of other circuits.
|
|
|
|
|
Yup I know, wires all over the place, but I did look into that. I think I may be on to the issue the board, I am using was 'claimed' from a pile of write offs and given to me (with out telling me!) so a day spent looking for the circuit diagram and hunting with a Toneohm leads me to think the I2C chip is not properly grounded took it off had a look, missing Gnd pad! start to do some surgry to the board and get caught with a meeting...more on Monday coming, I hope thanks though
|
|
|
|
|
|
See my reply to Greg above.
|
|
|
|
|
Nope, I know our little Green friend! I remember see stuffed Bob's somewhere... has he been licensed?
|
|
|
|
|
If it is more about the hardware part - you should go here: https://www.codeproject.com/Forums/186301/Hardware-Devices
Otherwise go with the programming language you use...
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg
|
|
|
|
|
Nope, solved it myself, posted the question and face palm came up with a solution...
|
|
|
|
|
Try pinging honey the codewitch directly, probability is she'd be the only one to answer anyway
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I fixed it, wrote the question though about it and solved it about two seconds after I posted it, tried it, Working all is good!
|
|
|
|
|
Anyway, MS is coming out with a G5 ARM Surface Go; and VS can generate ARM code ...
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I would guess this is the wrong topic for your reply.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
|
"To summarize the summary of the summary, people are a problem." -- The Guide
|
|
|
|
|
... she said she’s sorry she married me.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Are you resurrecting TOTD ?
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
|
You can answer that you are "sorrier". But then you may find out firsthand that every mushroom is edible, but some only once.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
My wife tells me she can take a joke.
|
|
|
|
|
I told my wife that she needed to embrace her mistakes. She hugged me.
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G.K. Chesterton
|
|
|
|
|
My country - right or wrong - change into animals! (11)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|