@intechstudio/grid-protocol 1.20260506.456 → 1.20260506.533
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -881,7 +881,7 @@ var GRID_LUA_S_TYPE = "System";
|
|
|
881
881
|
var GRID_LUA_S_META_init = "GRID_LUA_S_TYPE \" = { __index = {type = 'system', post_init_cb = function (self) self:\"GRID_LUA_FNC_A_INIT_short\"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",}}\"";
|
|
882
882
|
var GRID_ACTIONSTRING_SYSTEM_INIT = "--[[@cb]]--[[page init]]";
|
|
883
883
|
var GRID_ACTIONSTRING_SYSTEM_MAPMODE = "--[[@cb]]gpl(gpn())";
|
|
884
|
-
var GRID_ACTIONSTRING_SYSTEM_TIMER = "--[[@cb]]print(
|
|
884
|
+
var GRID_ACTIONSTRING_SYSTEM_TIMER = "--[[@cb]]print(\"tick\")";
|
|
885
885
|
var GRID_BUTTON_THRESHOLD = "0.5";
|
|
886
886
|
var GRID_BUTTON_HYSTERESIS = "0.2";
|
|
887
887
|
var GRID_LUA_B_TYPE = "Button";
|
|
@@ -946,7 +946,7 @@ var GRID_LUA_FNC_L_GET_RENDER_TIME_human = "get_render_time";
|
|
|
946
946
|
var GRID_LUA_FNC_L_GET_RENDER_TIME_usage = "lcd:get_render_time() Returns the time spent rendering between the last two swaps, in microseconds.";
|
|
947
947
|
var GRID_LUA_L_TYPE = "Lcd";
|
|
948
948
|
var GRID_LUA_L_META_init = "GRID_LUA_L_TYPE \" = { __index = {type = 'lcd', post_init_cb = function (self) self:\"GRID_LUA_FNC_A_INIT_short\"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",}}\"";
|
|
949
|
-
var GRID_ACTIONSTRING_LCD_INIT = "--[[@cb]]glsb(255)pi,s,c,self.f,self.v,self.id=math.pi,64,{{0,0,0},{255,255,255},{glr(),glg(),glb()}},1,{27,0,100}
|
|
949
|
+
var GRID_ACTIONSTRING_LCD_INIT = "--[[@cb]]glsb(255)pi,s,c,self.f,self.v,self.id=math.pi,64,{{0,0,0},{255,255,255},{glr(),glg(),glb()}},1,{27,0,100},\"VSN1\" d={[1]=\"Linear\",[2]=\"Encoder\",[3]=\"Button\",[7]=\"Endless\"}xc,yc,p=160,120,s * 5 / 8 self.eventrx_cb=function(self,hdr,e,v,n)self.v=v if #n==0 and d[e[3]]then n=d[e[3]].. e[2]end self.id=string.sub(n,1,(self:lsw()/(s / 2)- 1)// 1)self.f=1 end self:ldaf(0,0,319,239,c[1])self:ldrr(3,3,317,237,10,c[2])";
|
|
950
950
|
var GRID_ACTIONSTRING_LCD_DRAW = "--[[@cb]]if self.f > 0 then self.f=self.f - 1 local a,xo=gmaps(self.v[1],self.v[2],self.v[3],0.1,1),#tostring(self.v[1])/ 2 * s / 2 - #tostring(self.v[1])- s // 32 self:ldaf(10,10,310,230,c[1])self:ldrr(xc - p // 1 - 1,yc - p // 1 - 1,xc + p // 1 + 1,yc + p // 1 + 1,s,c[2])self:ldrrf(xc - p * a // 1,yc - p * a // 1,xc + p * a // 1,yc + p * a // 1,s,c[3])self:ldft(self.v[1],xc - xo,yc + s,s / 2,c[2])local xn=(#self.id *(s / 2))/ 2 - s // 32 self:ldft(self.id,xc - xn,yc - 1.5 * s,s / 2,c[2])self:ldsw()end";
|
|
951
951
|
var GRID_LUA_T_TYPE = "Touch";
|
|
952
952
|
var GRID_LUA_T_META_init = "GRID_LUA_T_TYPE \" = { __index = {type = 'touch', post_init_cb = function (self) self:\" GRID_LUA_FNC_A_INIT_short \"() self:\" GRID_LUA_FNC_A_TOUCH_short \"() end,\" GRID_LUA_FNC_ASSIGN_META_PAR1_RET(\"gen\", GRID_LUA_FNC_G_ELEMENTNAME_short) \",}}\"";
|
package/package.json
CHANGED