|Please note that this is a BETA version of the document. All information presented is correct but we are working on improving the details.|
In this document, we discuss how to assign GPIO inputs to trigger a command in Aximmetry.
Quick GPIO Assignments
They can be used like any other controller, e.g. you can assign them to buttons.
Suppose you want to use it to control the camera selection with a VirtualCam compound.
Navigate to the CAMERAS Control Board.
Select the SELECT CAMERA panel, right-click on the CAM 1 button, and choose Assign GPIO...
The Assign GPIO Controller window will pop up.
Use any physical button that is connected to the GPIO interface. The system will automatically detect it and the assignment is made. From now on that physical button switches to CAM 1.
Alternatively, if you want to control something within the node graph you can use the GPIO Input module.
Select your Device, Mode, and Channel (which is the number of the slot on the GPIO device).
You can use the Learn switch. After turning it On, You can use the physical button, and the system automatically selects the Device and Channel for you.
After this, the State logical output pin always indicates that the button is down or up.
For the opposite direction, when you want to control an external device from Aximmetry via GPIO you have to use the GPIO Out module.
You have to set up the Device and Channel similarly. Of course, the channel must be an output one. The State input will be continuously represented as an On or Off state on your GPIO device.