Hola a todos? Estoy realizando un proyecto con GLCD grafico 128x64 basado en KS0108. Utilizo el compilador CCS y lo simulo en PROTEUS. HE posteado dos capturas una del codigo y la otra del simulador donde se puede apreciar las conexiones y tambien el resultado de la simulacion del codigo que pueden ver. Utilizo un PIC 16F877 i las librerias que el compilador me ofrece: <HDM64GS12.c> i <graphics.c>. En la segunda, hay una funcion que permite mostrar texto:
//// glcd_text57(x, y, textptr, size, color) ////
//// * Write the null terminated text pointed to by textptr with ////
//// the upper left coordinate of the first character at (x,y) ////
//// Characters are 5 pixels wide and 7 pixels tall ////
//// - size is an integer that scales the size of the text ////
//// - color is ON or OFF
muestra, empezando por las coordenadas x,y la variable textptr en el tamaño que quieres.
La variable textptr tiene que ser un string.
Mi problema es que quiero representar cantidades guardadas en variables numericas.
¿Aguien sabe como convertir en CCS un dato integer16 en un string?
o, ¿Se os ocurre como podria mostrar la varable numérica de alguna forma? ¿Hay alguna libreria por ahí..?
Muchas Gracias de antemano a todos!
//// glcd_text57(x, y, textptr, size, color) ////
//// * Write the null terminated text pointed to by textptr with ////
//// the upper left coordinate of the first character at (x,y) ////
//// Characters are 5 pixels wide and 7 pixels tall ////
//// - size is an integer that scales the size of the text ////
//// - color is ON or OFF
muestra, empezando por las coordenadas x,y la variable textptr en el tamaño que quieres.
La variable textptr tiene que ser un string.
Mi problema es que quiero representar cantidades guardadas en variables numericas.
¿Aguien sabe como convertir en CCS un dato integer16 en un string?
o, ¿Se os ocurre como podria mostrar la varable numérica de alguna forma? ¿Hay alguna libreria por ahí..?
Muchas Gracias de antemano a todos!