This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
souperdavecdn's profile picture

Sensor Turtle - How do I equip a card?

Started by souperdavecdn, 30 August 2014 - 10:56 PM
souperdavecdn #1
Posted 31 August 2014 - 12:56 AM
I'm feeling noobish here but I couldn't find anywhere that talks about this? I'd like to be able to do it in code but manually would suffice.

Thanks a bunch,

Soup
Lyqyd #2
Posted 31 August 2014 - 01:38 AM
Put it in slot sixteen.
souperdavecdn #3
Posted 31 August 2014 - 01:53 AM
yer the best, is there an example of doing it in code somewhere you think?

Thanks again

soup
Bomb Bloke #4
Posted 31 August 2014 - 01:59 AM
Assuming the card is in a chest in front of the turtle;

turtle.select(16)
turtle.suck()

Things get rather more complex if the chest contains other items. You'll want OpenPeripheral along with a good understanding of tables and peripherals before diving into that.
Edited on 31 August 2014 - 12:13 AM
souperdavecdn #5
Posted 31 August 2014 - 02:06 AM
We need a "quickie on the wiki " that simply says - yo, yo. the Sensor Turtle's Sensor Card Slot is 16. :)/>)

Thanks Bomb, Lyqyd

P.S. If anyone else has further questions on this I think I have a handle on it :)/>)
Edited on 31 August 2014 - 12:11 AM