Difference between revisions of "Gpio button"
Boxofstops (Talk | contribs) |
Boxofstops (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | One special feature of the Raspberry Pi is its GPIO, or General Purpose Input/Output connector. This is the strip of pins that runs along one side of the Pi, which acts as a connector to a number of physical inputs or outputs. | + | One special feature of the Raspberry Pi is its [https://www.raspberrypi.org/documentation/usage/gpio/ GPIO], or General Purpose Input/Output connector. This is the strip of pins that runs along one side of the Pi, which acts as a connector to a number of physical inputs or outputs. |
This ability to wire up custom physical inputs, switches or buttons, is part of the reason Box Of Stops was written for the Raspberry Pi. Perfect for a bit of DIY organ building. | This ability to wire up custom physical inputs, switches or buttons, is part of the reason Box Of Stops was written for the Raspberry Pi. Perfect for a bit of DIY organ building. | ||
Line 5: | Line 5: | ||
== Setting up a Gpio input == | == Setting up a Gpio input == | ||
− | There is a section on [http://www.boxofstops.com/hardware#customize-pi Customizing the Raspberry Pi] on the main website. Adding buttons to the Pi is an important part of many hobby projects, so please browse the wealth of information available on this topic. | + | There is a section on [http://www.boxofstops.com/hardware#customize-pi Customizing the Raspberry Pi] on the main website. Adding buttons to the Pi is an important part of many hobby projects, so please browse the wealth of information available on this topic, maybe starting [https://www.raspberrypi.org/documentation/usage/gpio/ here]. |
Once you have wired up a Gpio button, this can be used to control Box Of Stops in exactly the same way as any other [[Trigger]]. | Once you have wired up a Gpio button, this can be used to control Box Of Stops in exactly the same way as any other [[Trigger]]. |
Revision as of 14:11, 25 September 2016
One special feature of the Raspberry Pi is its GPIO, or General Purpose Input/Output connector. This is the strip of pins that runs along one side of the Pi, which acts as a connector to a number of physical inputs or outputs.
This ability to wire up custom physical inputs, switches or buttons, is part of the reason Box Of Stops was written for the Raspberry Pi. Perfect for a bit of DIY organ building.
Setting up a Gpio input
There is a section on Customizing the Raspberry Pi on the main website. Adding buttons to the Pi is an important part of many hobby projects, so please browse the wealth of information available on this topic, maybe starting here.
Once you have wired up a Gpio button, this can be used to control Box Of Stops in exactly the same way as any other Trigger.
In Configuration mode, if you click the plus icon to add a trigger to a Stop, Coupler or Combination in the usual way, then the screen will wait for you to press the new input button. Assuming everything has been wired up correctly, the screen will then confirm which button you pressed.
Sharing Gpio inputs with another application on the Pi
By default Box Of Stops will assume it is the only application running on the Raspberry Pi that needs to access the Gpio inputs, and take input from all 17 of them.
To share the inputs with another application, please look in the Application properties for Box Of Stops. The pi.input.pins property can be used to define which pins Box Of Stops should open - more details in the application.properties.default file.