Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/BrucePublic

Building from source

William Cody Ardoin edited this pageDec 29, 2024 ·8 revisions

VS Code

You can open the project folder on Visual Studio Code with PlatformIO extension and click on "PlatformIO: Build" on the bottom.After compiling the project, you need to merge the bootloader, partitions and the actual firmware on a single one, for that you can run the PlatformIO Custom task named "build-firmware" to output the single combined binary.With this you will have 5 .bin files on the project folder, with they being the build for M5Cardputer, M5StickC Plus 1.1, M5StickC Plus 2, M5core and M5Core2.

LINUX BUILD

Requirements

sudo apt updatesudo apt install python3-pip gitpip3 install platformioexport PATH=$PATH:~/.local/binsource~/.bashrcecho'export PATH=$PATH:~/.local/bin'>>~/.bashrcsource~/.bashrcgit clone https://github.com/pr3y/Bruce.gitcd Bruce

Fedora based just change to

sudo dnf updatesudo dnf install python3-pip git

Step by Step to build the project

pio run --target cleanpio run -e m5stack-cardputerpio run -e m5stack-cplus2pio run -e m5stack-cplus1_1# or pio run to all builds# pio runpio run -e m5stack-cardputer -t build-firmwarepio run -e m5stack-cplus2 -t build-firmwarepio run -e m5stack-cplus1_1 -t build-firmware

Windows build

  • InstallGit
  • Install Python using the Microsoft Store
  • Install VSCode
  • Download the repository and extract it somewhere you want
  • Within VSCode,File>Open Folder... and select the folder of the firmware
  • If it doesn't prompt to install Platformio, click on "Extentions" (4 swares icon on the left) and install Platformio (and restart VsCode)
  • In the Status bar (down on the screen) click where is writtenDefault (Bruce-main)
  • A little Menu will appear in the Search bar (up on screen), select your device "env"
  • Now click in the ✔️ Icon in the Status Bar (beside the cute little House), it will start building your project
  • if you want to upload directly, you can do it clicking in the "->" arrow to upload to your device
  • If you want to output a binary you can flash, use the "build-firmware" Custom task in the PlatformIO Extension Sidebar Menu named "project tasks"

Github

You can also use the Github workflow to build the binaries for you with Actions, the last releases are also available there on the Artefacts, but you can also fork the project and make the changes you want to this, then build on your own Actions also.

hi im from undersea

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp