crashtest-r0ket/firmware/lcd/print.c

60 lines
796 B
C
Raw Normal View History

2011-07-12 23:13:19 +00:00
#include <display.h>
#include <render.h>
#include <fonts.h>
2011-07-16 18:09:08 +00:00
#include <print.h>
2011-07-12 23:13:19 +00:00
int x=0;
int y=0;
void lcdPrint(const char *string){
x=DoString(x,y,string);
};
void lcdNl(void){
x=0;y+=font->u8Height;
};
void lcdPrintln(const char *string){
lcdPrint(string);
lcdNl();
};
void lcdPrintInt(const int num){
x=DoInt(x,y,num);
};
void lcdPrintIntHex(const int num){
x=DoIntX(x,y,num);
};
2011-07-16 18:09:08 +00:00
void lcdPrintCharHex(const uint8_t num){
x=DoCharX(x,y,num);
};
void lcdPrintShortHex(const uint16_t num){
x=DoShortX(x,y,num);
};
2011-07-12 23:13:19 +00:00
void lcdClear(){
x=0;y=0;
lcdFill(0);
};
void lcdRefresh(){
lcdDisplay(0);
};
2011-07-13 00:15:47 +00:00
void lcdMoveCrsr(signed int dx,signed int dy){
x+=dx;
y+=dy;
};
void lcdSetCrsr(int dx,int dy){
x=dx;
y=dy;
};
2011-07-16 18:09:08 +00:00
void lcdSetCrsrX(int dx){
x=dx;
};