[SOLVED]how can i catch srting from interpreter?
Posted: Fri Feb 13, 2015 7:34 am
i am porting pcd8544 driver in to the lua. i need to catch and print messages.how can i catch ? any help is welcome
Code: Select all
static int pcd8544_write( lua_State* L)
{
int x, y;
if ( lua_isnumber(L, 1) )
{
x = lua_tointeger(L, 1);
y = lua_tointeger(L, 2);
PCD8544_gotoXY(x,y);
//static "msg" word printing successufully
//but i need to catch from lua
PCD8544_lcdPrint("msg");
}
return 0;
}