Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("knob")
- knob.init("left", 1, colors.white, colors.brown)
- local k = knob.new("test", 5, 25, 5, 10, "1234567890", colors.blue, colors.red)
- k.onClick = function(self)
- print("clicked: "..self.name)
- end
- k.onActivate = function(self)
- print("activated: "..self.name)
- end
- k.onDeactivate = function(self)
- print("deactivated: "..self.name)
- end
- knob.run(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement