Posted 22 September 2013 - 05:40 PM
I've been messing around with OpenPeripheral and on the documentation for the glasses bridge terminal it shows that when you create an item that you said set* a variable equal to the method used for creating the item. In the example, the variable is called objectInfo. I want to know if you can actually obtain any info from the object using this variable such as something like "print(objectInfo.text)" if the object was text.
thePeripheral = peripheral.wrap("direction")
objectInfo = thePeripheral.addText(x, y, text, color)
print(objectInfo.text)
thePeripheral = peripheral.wrap("direction")
objectInfo = thePeripheral.addText(x, y, text, color)
print(objectInfo.text)