Adding the device
Open the MobiFlight Modules dialog
Click on the MobiFlight Modules button in the main window toolbar.
![Screenshot of the MobiFlight Modules button in the main window toolbar.](/screenshots//main-window-toolbar-modules.png)
Add the button or switch
Click on the board the device is connected to, then select Button from the Add device menu. The same device type is used for all button and switch variations.
![Screenshot of the menu open with the Button item highlighted.](/devices/button-switch/adding-device/screenshots/add-device-menu.png)
Configure the button
Use the Pin settings dropdown to specify the board pin the button is connected to.
Provide a meaningful name for the button in the Name field. This name is shown in the input configuration screens when assigning the button to a flight simulator input.
![Screenshot of the settings for a button, with pin 2 selected, and ParkingBrake as the name.](/devices/button-switch/adding-device/screenshots/device-configuration.png)
Upload the changes to the board
Click the Upload config button at the bottom of the MobiFlight Modules tab to upload the modified configuration to the board.
![Screenshot of the MobiFlight Module dialog with the Upload config highlighted.](/screenshots//upload-config-button.png)
Close the MobiFlight modules dialog
Click the OK button to close the MobiFlight modules dialog and return to the main app window.
Tip
Three-position switches are added to MobiFlight as two separate button devices. Repeat the above steps to add a second device that is mapped to the second pin used by the three-position switch.