Hi, I just recently downloaded and installed ComputerCraft! Now on the wiki I saw a program for a turtle that looked really neat, but it hooked up with a monitor. So I just though I'll place the Mining Turtle and the Monitors in the right spots, and I did that and then I put the program into the turtle. But when it's running, it won't display anything on the monitor. So I'm wondering how do I hook things up to the monitor? And if you want to give me any other beginner details for computercraft that would be great!
I'm a Complete idiot at this and I need help!
Started by Kezaraux, Aug 03 2012 04:59 PM
3 replies to this topic
#1
Posted 03 August 2012 - 04:59 PM
#2
Posted 03 August 2012 - 05:03 PM
The Peripheral API is just what you are looking for. Basically, use
mon = peripheral.wrap("side")
mon.write("Hello")
as an example, to write hello on the monitor of the side you choose.
#3
Posted 04 August 2012 - 11:41 AM
If you are trying to get the turtle to out put to the monitor, you need to learn the rednet functions.
I recommend running a program that does the following:
ask for user input
check input for validity
process input (eg user types dig, code responds turtle.dig)
set computer to a rednet receive loop
upon catching a response, output it to the monitor
begin again when required
If you need a bit of help, tell me what you want it to do precisely eg, do you want to have it so you input data manually in a sort of UI, have it run a preprogrammed process or both?(running the program via the UI)
I recommend running a program that does the following:
ask for user input
check input for validity
process input (eg user types dig, code responds turtle.dig)
set computer to a rednet receive loop
upon catching a response, output it to the monitor
begin again when required
If you need a bit of help, tell me what you want it to do precisely eg, do you want to have it so you input data manually in a sort of UI, have it run a preprogrammed process or both?(running the program via the UI)
#4
Posted 04 August 2012 - 02:35 PM
BEWARE, if it is a wireless turtle you cannot access any peripherals to the right because the modem is there
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











