Connect a device to Pybytes by flashing Pybytes library
In this section, we will explain to you how to connect your device to Pybytes by flashing the Pybytes library. Use this, if you want to have full control over the Pybytes library on your device.
Pybytes firmware already contains Pybytes library. That means that you can add your device quickly without the need of flashing Pybytes library.
Step 1: Flash stable firmware to your device with Pycom firmware updater tool
- Open Pycom firmware updater tool
- Select a stable firmware
- Click on continue
Here's more information about firmware updates.
Step 2: Download your Pybytes Library
You can download Pybytes library at the device's settings page:
Navigate to your device in Pybytes;
Click on the settings tab;
Click on the Download button at Pybytes library section;
Step 3. Flash your device with Pymakr
In case you haven't installed Pymakr plugin, follow these instructions. We recommend to install Pymakr in Atom.
- Connect your device to the computer with a USB cable.
- Open zip archive of Pybytes library and extract a containing folder.
- Check your
flash/pybytes_config.json
file. It should be pre-filled with your Pybytes credentials (deviceToken, WiFi credentials, ...) - Open Pybytes library folder as a project folder in Atom.
- Click on the Connect button in Pymakr. Pymakr should connect to your device.
Upload code to your device by clicking on the Upload button in Pymakr.
After all the Pybytes library files are uploaded to your device, the device will restart and connect to Pybytes.