mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 13:43:25 +00:00
2.3 KiB
2.3 KiB
Building
Running a developer build
On every change made in this repository, Github Actions automatically builds the firmware images for various screens. You can run one of these images as follows:
Getting a firmware image
- Make sure you are logged into github
- Go to a Github Actions build summary, then download the
firmwareArtifact. - Open the firmware.zip archive you just downloaded, open the corresponding folder for your screen, then extract
merged_firmware.bin
This merged_firmware.bin file is a ready to flash image. Note that flashing this image does wipe your current configuration.
Flashing merged_firmware.bin
- Download and extract esptool to a new folder
- For windows, download
esptool-v4.7.0-win64.zip
- For windows, download
- Open a terminal window and navigate to this new folder containing esptool
- Move
merged-firmware.bininto this new folder - Connect the display to your computer
- Execute the command
esptool write_flash 0x0 merged-firmware.bin- Don't forget to hold down the boot button on the display
Building via PlatformIO
- Install Visual Studio Code and install the PlatformIO IDE plugin.
- Download the source code of CYD-Klipper
- This can be done via the
git clone https://github.com/suchmememanyskill/CYD-Klippercommand or via the green<> Codebutton on Github
- This can be done via the
- Open the CYD-Klipper folder inside the CYD-Klipper folder in Visual Studio Code
- Click on the Alien/Bug tab (PlatformIO) on the left
- Expand the folder/tab for your specific screen
- Entries with the suffix '-SD' are using the smartdisplay driver. Entries without this suffix are using a custom driver
- Usually, a custom driver is preferred over the smartdisplay driver
- Connect the display to your computer
- Click 'Upload and Monitor'
- This will start compiling the code, and after upload it to the display
- Don't forget to hold the boot button while flashing. The screen will flash when the firmware is attempted to be flashed
