This project will be used for implementation of Lora EBYTE E22 library. Currently, the project contains build script that uses docker to build any Raspberry PI PICO project -> you don't need to set up RPi PICO build env on your linux machine, just use build.sh
to build the project in docker.
A big thanks to xingrz for the docker image.
git clone --recursive https://github.com/mbalug7/picolora.git
cd ./picolora
git submodule update
cd pico-sdk && git submodule update --init
- Go to
src
- Create a new directory with new project name (
blink
project has been included already) - In
src/CMakeLists.txt
add new line:add_subdirectory(NEW_PROJECT_NAME)
- Create
CMakeLists.txt
insrc/NEW_PROJECT_NAME
. CheckCMakeLists.txt
file inblink
example. - Write some code and build it with
./build.sh
script - If you can't run it, try:
sudo chmod +x build.sh
- After building, you will get new folder
src/build
- Copy
src/build/NEW_PROJECT_NAME/new_project_name.uf2
to RPI Pico drive. Official documentation: RPI PICO OFFICIAL LINK