updated stuff
This commit is contained in:
parent
ba3540d861
commit
647ff9c32d
@ -1,27 +1,27 @@
|
||||
function clear_display()
|
||||
function clearDisplay()
|
||||
term.clear()
|
||||
term.setCursorPos(1,1)
|
||||
end
|
||||
|
||||
function write_to_file(file, content)
|
||||
function writeToFile(file, content)
|
||||
file = fs.open(file, "w")
|
||||
file.write(content)
|
||||
file.close()
|
||||
end
|
||||
|
||||
function append_to_file(file, content)
|
||||
function appendToFile(file, content)
|
||||
file = fs.open(file, "a")
|
||||
file.write(content)
|
||||
file.close()
|
||||
end
|
||||
|
||||
function append_to_file_nl(file, content)
|
||||
function appendToFileNl(file, content)
|
||||
file = fs.open(file, "a")
|
||||
file.writeLine(content)
|
||||
file.close()
|
||||
end
|
||||
|
||||
function read_file_oneline(file)
|
||||
function readFileOneline(file)
|
||||
file = fs.open(file, "r")
|
||||
data = file.readLine()
|
||||
file.close()
|
||||
@ -29,7 +29,7 @@ function read_file_oneline(file)
|
||||
return data
|
||||
end
|
||||
|
||||
function read_file_all(file)
|
||||
function readFileAll(file)
|
||||
file = fs.open(file, "r")
|
||||
if (file == nil) then
|
||||
print("File does not exist.")
|
||||
@ -40,7 +40,7 @@ function read_file_all(file)
|
||||
return data
|
||||
end
|
||||
|
||||
function split_string_to_array(input_str)
|
||||
function splitStringToArray(input_str)
|
||||
table = {}
|
||||
i = 0
|
||||
for str in string.gmatch(input_str, "([^"..",".."]+)") do
|
||||
|
@ -44,7 +44,7 @@ local function getState()
|
||||
turtleState["script"] = "main/programs/turtle-miner-fibo.lua"
|
||||
turtleState["info"] = ""
|
||||
turtleState["fuelLevel"] = turtle.getFuelLevel()
|
||||
trutleState["dataCurrentFibo"] = 2
|
||||
turtle["dataCurrentFibo"] = 2
|
||||
turtleState["dataGoalRows"] = 0
|
||||
turtleState["dataGoalPathProgress"] = 0
|
||||
turtleState["dataCurrentRow"] = 0
|
||||
|
Loading…
Reference in New Issue
Block a user