Add new APIs

This commit is contained in:
Evgeny
2023-02-23 13:20:34 +04:00
parent 4dc9f05907
commit 75057f8c42
7 changed files with 119 additions and 8 deletions

20
samples/search-test5.lua Normal file
View File

@@ -0,0 +1,20 @@
-- name = "Script #5"
-- type = "search"
function on_search()
local points = {
{ 1628501740654, 123456789 },
{ 1628503740654, 300000000 },
{ 1628505740654, 987654321 },
}
search:show_chart(points, "x:date y:number")
end
function on_click(idx)
if idx == 1 then
system:vibrate(100)
else
system:vibrate(300)
end
end