ImSwitchUpdate
Updated openUC2 ImSwitch
In this guide, we'll walk you through the process of updating ImSwitch after you've installed it using pip. The update consists of three main steps:
- Updating the ImSwitch UC2 version
- Updating the UC2-REST
- Updating the UC2-ESP32 firmware
1. Updating the ImSwitch UC2 Version
Assumption: You have previously cloned the ImSwitch repository using git.
Open your terminal.
Activate the ImSwitch environment:
conda activate imswitch
Navigate to the directory where you cloned ImSwitch:
cd <DIRECTORY/WHERE/YOU/DOWNLOADED/IMSWITCH>
Pull the latest version from the repository and install:
git pull https://github.com/openUC2/ImSwitch/
pip install -e .
2. Updating the UC2-REST to Interface the UC2 Electronics
Assumption: You have previously cloned the UC2-REST repository using git.
In the terminal, navigate to the directory where you cloned UC2-REST:
cd <DIRECTORY/WHERE/YOU/DOWNLOADED/UC2-REST>
Pull the latest version from the repository and install:
git pull https://github.com/openUC2/UC2-REST/
pip install -e .
3. Updating the UC2-ESP32 Firmware
- Visit the UC2 Firmware Page.
- Select the board you're using. If you're uncertain about this, feel free to reach out via email.
- Click on the "Connect" button.
- From the browser-provided list, select the COM port.
- Click on "Flash Firmware".
- Wait for the installation process to complete.
- Test the firmware on the UC2 Web Serial Test Page.
- Close the browser window to release the serial port.
Finally, you can start ImSwitch:
python -m imswitch