aboutsummaryrefslogtreecommitdiff
path: root/example/example.lua
blob: 3b989d2ac1e8fa8204a5a50c99f20bab612b561d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- An example script for norns-etc
-- Load this file in emacs and M-x compile to upload.

function redraw()
  screen.clear()
  screen.move(64, 32)
  screen.text_center("norns example #" .. math.floor(math.random() * 1000))
  screen.update()
end


function init()
  redraw()
end

-- This needs to be at the end so that it doesn't conflict with the
-- norns convention of having a script description in comments on the
-- first couple of lines.

-- Local Variables:
-- compile-command: "make upload"
-- End: