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

Open peripherals+add ons tutorial

Started by bomber1949, 12 August 2014 - 01:30 PM
bomber1949 #1
Posted 12 August 2014 - 03:30 PM
So, I started computer craft I can do a fair bit of coding-not much, but a gpod amount

And now I want to learn about openpeipherals and openperipheralsaddon
Eg like the sensor and PIM and glasses and terminal bridge
Lyqyd #2
Posted 12 August 2014 - 04:36 PM
Moved to Ask a Pro.
Cranium #3
Posted 12 August 2014 - 06:41 PM
There's documentation in game for any available peripherals. You can use openp/docs <side> when connected to a peripheral, and it'll give you basic info about what functions are available for that peripheral, and what it does.
bomber1949 #4
Posted 13 August 2014 - 12:35 AM
You what?
I don't quite understand that?
KingofGamesYami #5
Posted 13 August 2014 - 01:00 AM
does this help?

>openp/docs right
-->stuff on the peripheral
>openp/docs left
-->stuff on the peripheral
etc.
Bomb Bloke #6
Posted 13 August 2014 - 04:08 AM
To see what - if any - functions OpenPeripheral gives you access to, run its documentation script along with the name of the peripheral (as per the name you'd use to wrap it):

openp/docs <name>

For specific info on given functions, follow that up with:

openp/docs <name> <functionname>

Note that whether or not OpenPeripheral supports your block may depend on both the version of OpenPeripheral and the version of the mod that block comes from. For older OpenPeripheral builds, you may need to install the documentation script manually (see the OpenPeripheral thread for info on this).

For further info on wrapping and using peripherals, take a read through this tutorial.
bomber1949 #7
Posted 13 August 2014 - 09:33 AM
Yeah that does hekp, thanks guys