Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- receiver.setChannel("Channel")
- receiver.setName("C-Provider")
- while true do
- local event, id, key = os.pullEvent()
- if event == "pda_connected" then
- receiver.setIcon(1, id)
- receiver.setText(0, "Welcome to C-Provider", id)
- elseif event == "pda_key" and key == 19 then
- receiver.setText(0, "Rebooting...", id)
- os.reboot()
- elseif event == "pda_key" and key == 23 then
- receiver.setText(0, "Changing icon...", id)
- receiver.setIcon(3, id)
- elseif event == "pda_key" then
- receiver.setText(0, "Pressed key: " .. key, id)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement