Does Bob have an Embedded page?
-
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
-
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.
-
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... ;)
-
Richard, Richard. I don't think I've seen you troll anyone before. :-D
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.He was just being a dick. [rim-shot]
Software Zen:
delete this;
-
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.
-
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:thumbsup: