Hi guys,
I'm using for my project engineer an Arduino MEGA board connected with a KS0108 display I2C communication that I bought in this web site :
http://www.wide.hk/products.php?product=IIC-{47}-I2C-{47}-KS0108-Blue-Backlight-GLCD-128x64-(-compatible-Arduino-{47}-AVR-{47}-PIC-)
I used the library of Nick Gammon : http://www.gammon.com.au/ Arduino / I2C_graphical_LCD_display.zip
that I downloaded here : Gammon Forum : Electronics : Microprocessors : Connecting a graphical LCD via a I2C/SPI using a 16-bit port expander
Everything works good except that I can not find how to display the content of a variable.
Like an example: I declare int x = 2;
How I can display the content of x ??? I thought that it would work with lcd.writeData (x); but unfortunately it seems that this is not the right function.
So my first question is: how to display on the KS0108 I2C the content of a byte an int , const int, float uint_8 etc ??
My second question is how to display 2 digits max after floating point ??
This is really urgent, thank you for helping me.