Line 186: |
Line 186: |
| stingr myStingr = getSTINGR(byte identifier); | | stingr myStingr = getSTINGR(byte identifier); |
| </code><br /> | | </code><br /> |
− | The getSTINGR method returns an instance of STINGR, paired with the given identifier, which should be the identifier of the calling board. | + | The getSTINGR method returns an instance of STINGR, paired with the given identifier, which should be the identifier of the calling board.<br /> |
| | | |
| <code> | | <code> |
| boolean isInit = myStingr.initSTINGR(); | | boolean isInit = myStingr.initSTINGR(); |
| </code><br /> | | </code><br /> |
− | The initSTINGR method conducts the initialization routine by sending out a beacon gesture, and returns the success of the operation. You should not utilize STINGR if the result of this operation is false -- it should return false only in the case of hardware failure. | + | The initSTINGR method conducts the initialization routine by sending out a beacon gesture, and returns the success of the operation. You should not utilize STINGR if the result of this operation is false -- it should return false only in the case of hardware failure.<br /> |
| | | |
| <code> | | <code> |
| myStringr.attachConsole(Serial); | | myStringr.attachConsole(Serial); |
| </code><br /> | | </code><br /> |
− | The attachConsole method allows one to attach STINGR output to a Serial stream, permitting STINGR to output status messages. This particular function outputs high-level output. | + | The attachConsole method allows one to attach STINGR output to a Serial stream, permitting STINGR to output status messages. This particular function outputs high-level output.<br /> |
| | | |
| <code> | | <code> |
| myStingr.attachDebugConsole(Serial); | | myStingr.attachDebugConsole(Serial); |
| </code><br /> | | </code><br /> |
− | The attachDebugConsole method allows one to attach STINGR low-level debug output to the Serial stream, providing a large array of information for debugging possible communication problems. | + | The attachDebugConsole method allows one to attach STINGR low-level debug output to the Serial stream, providing a large array of information for debugging possible communication problems.<br /> |