# Bluetooth Gamepad/Controller

### Pairing through the AXIBO Python API

1. Create a new python file&#x20;
2. In the python file import the AXIBO library --> `from axibo import Axibo`
3. Initialize the AXIBO object to a variable of your choice --> `pair = Axibo("AXIBO IP")`
4. Use `system.configure_bluetooth(OPTION, "MAC")` and the **MAC address** of your wireless gamepad/controller to pair the device

   Valid `OPTION` entries:&#x20;

   &#x20;    1: Scan for Bluetooth Device

   &#x20;    2: Delete Bluetooth Device

   &#x20;    3: Connect to Bluetooth Device
5. On the wireless gamepad/controller hold the "SHARE" and "HOME" buttons at the same time for around 5 seconds and the white "INDICATOR LED" will start blinking

   ![](https://2605831551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw12QCDDbTnGacryDSbBw%2Fuploads%2Fz12Lzz8waclLGhZizTDH%2Fimage.png?alt=media\&token=1f8a776b-33ff-4df2-8bee-02053a70c1e5)
6. Run the python script and wait until the "INDICATOR LED" goes solid
7. You are now connected

#### Full Connect Python Code:

```python
from axibo import Axibo

#Change for your AXIBOs IP Address
pair = Axibo("10.0.0.176")

#Change the MAC address to the MAC address of your wireless gamepad/controller
pair.system.configure_bluetooth(3, "98:CD:E3:23:42:BD")
```

**Full Delete Python Code**:

```python
from axibo import Axibo

#Change for your AXIBOs IP Address
pair = Axibo("10.0.0.176")

#Change the MAC address to the MAC address of your wireless gamepad/controller
pair.system.configure_bluetooth(2, "98:CD:E3:23:42:BD")
```

### Using the Gamepad/Controller&#x20;

![](https://2605831551-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw12QCDDbTnGacryDSbBw%2Fuploads%2FKxGKW0VIWmppbEGEf6BG%2Fimage.png?alt=media\&token=f5b29683-7e88-4ac9-84d0-0e832c969f8f)
