> For the complete documentation index, see [llms.txt](https://development-test.pycom.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://development-test.pycom.io/pybytes/connect/flash.md).

# Connect to Pybytes: Flash Pybytes library manually

## Connecting a device to Pybytes by flashing Pybytes library manually

In this section, we will explain to you how to connect your device to Pybytes by flashing Pybytes library manually.

{% hint style="info" %}
From firmware 1.16.x onwards all Pycom devices come with Pybytes library build-in `/frozen` folder. That means that you can add your device quickly without the need of flashing Pybytes library manually. [Click here for more information.](/pybytes/connect/quick.md)
{% endhint %}

### Step 1: Download your Pybytes Library

At the last step of the "Add Device" process:

![](https://3086745545-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIL0iGdl11z7Jos_jpX%2F-LKN7scqKKkb6TqB3uYO%2F-LKN86VhjwBFf8ZQJhDF%2Fpybyteslib-box%20\(1\).gif?generation=1534782120097926\&alt=media)

1. Click on download "Pybytes library"

![](https://3086745545-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIL0iGdl11z7Jos_jpX%2F-LKN7scqKKkb6TqB3uYO%2F-LKN86VlgPCP9UP7mL8h%2Fpybytes-library-wizard.png?generation=1534782120625370\&alt=media)

You can also download *Pybytes library* at the device's settings page:

2\. Navigate to your device in Pybytes;

3\. On your device's page click on settings tab;

4\. Click on the button *Download* at Pybytes library;

![](https://3086745545-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIL0iGdl11z7Jos_jpX%2F-LKN7scqKKkb6TqB3uYO%2F-LKN86VohVH1cVXlzOFQ%2Fpybytes-library-download.gif?generation=1534782120803536\&alt=media)

### Step 2. Flash your device with Pymakr

{% hint style="info" %}
In case you haven't installed Pymakr plugin, follow [these instructions](/pymakr-plugin/installation/atom.md).
{% endhint %}

1. Connect your device to your computer with USB cable.
2. Extract download Pybytes library and open extracted folder with Atom.
3. Get your device serial port: in Pymakr plugin click on *More* > *get serial ports*
4. Paste your device's serial port to `pymakr.conf` file:

   ```
    {
        "address": "PASTE_YOUR_SERIAL_PORT_HERE",
        "username": "micro",
        "password": "python",
        "sync_folder": "flash"
    }
   ```
5. Checkout your `flash/pybytes_config.json` file. It will be pre-filled with your information from Pybytes

   Like deviceToken or WiFi credentials. You can change e.g. your WiFy password here.
6. Put your device in [safe boot mode](/getting-started/programming/safeboot.md).
7. Upload code to your device by clicking on *Upload* button in Pymakr.

   After all Pybytes library files are uploaded to device, device will restart and will connect to Pybytes.

{% hint style="info" %}
Pybytes library is written to `/flash` folder and will take precedence over build in firmware libraries in `/frozen` folder.
{% endhint %}

## Next step: Set up your device's dashboard!

Now it's time to display data from your device into Pybytes dashboard.

{% content-ref url="/pages/-LKN7wRH-PxkcJ9zA1gm" %}
[Visualise data from your device](/pybytes/dashboard.md)
{% endcontent-ref %}
