cleanup + monitorManager

This commit is contained in:
kepler155c
2017-09-21 01:42:56 -04:00
parent 4116e046d1
commit f0f8ba0729
9 changed files with 610 additions and 188 deletions

View File

@@ -14,16 +14,9 @@ if not turtle then
error('This program can only be run on a turtle')
end
if not device.monitor then
error('Monitor must be attached (3 wide x 1 tall')
end
UI:configure('Music', ...)
local monitor = UI.Device({
deviceType = 'monitor',
textScale = 0.5,
})
UI:setDefaultDevice(monitor)
local monitor = UI.term
local page = UI.Page({
volume = 15,