Problem with getting the module type...
Posted: Thu Jan 22, 2004 12:52 pm
We own a GLK12232-25-WBL module and we're programming in Lua. We're actually encountring problems with getting the module type. It said in the manual that it should retrun a byte hex value but it's actually returning this: ~255 here is our code:
function LCD.ReadModuleType(Resource)
local VersionNum
COM.ClearBufferIn(Resource)
LCD.SendCommand(Resource, "~254~055")
VersionNum = ""
while VersionNum == "" do
VersionNum = COM.GetData(Resource, 100)
print(VersionNum)
Sleep(50)
end
tblResult = _MISC.ConvertDecToTbl(VersionNum)
return VersionNum, LCD._VersionNumberString[tblResult[0]]
end
We though that the module would return "22" instead of "~255".
Someone knows how to solve this??
function LCD.ReadModuleType(Resource)
local VersionNum
COM.ClearBufferIn(Resource)
LCD.SendCommand(Resource, "~254~055")
VersionNum = ""
while VersionNum == "" do
VersionNum = COM.GetData(Resource, 100)
print(VersionNum)
Sleep(50)
end
tblResult = _MISC.ConvertDecToTbl(VersionNum)
return VersionNum, LCD._VersionNumberString[tblResult[0]]
end
We though that the module would return "22" instead of "~255".
Someone knows how to solve this??
