Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/lora-sensor-pico
https://github.com/hardillb/lora-sensor-pico
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/lora-sensor-pico
- Owner: hardillb
- License: bsd-3-clause
- Created: 2022-02-06T11:33:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-07T23:58:29.000Z (almost 3 years ago)
- Last Synced: 2024-10-13T16:11:36.709Z (3 months ago)
- Language: CMake
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pico LoRA Breakout Garden
## Before you start
It's easier if you make a `pico` directory or similar in which you keep the SDK, Pimoroni Libraries and your projects alongside each other. This makes it easier to include libraries.
## Preparing your build environment
Install build requirements:
```bash
sudo apt update
sudo apt install cmake gcc-arm-none-eabi build-essential
```And the Pico SDK:
```
git clone https://github.com/raspberrypi/pico-sdk
cd pico-sdk
git submodule update --init
export PICO_SDK_PATH=`pwd`
cd ../
```The `PICO_SDK_PATH` set above will only last the duration of your session.
You should should ensure your `PICO_SDK_PATH` environment variable is set by `~/.profile`:
```
export PICO_SDK_PATH="/path/to/pico-sdk"
```## Grab the Pimoroni libraries
```
git clone https://github.com/pimoroni/pimoroni-pico
```## Clone this boilerplate
```
git clone https://github.com/hardillb/lora-sensor-pico --recurse-submodules
cd lora-sensor-pico
```If you have not or don't want to set `PICO_SDK_PATH` you can edit `.vscode/settings.json` to pass the path directly to CMake.
## Prepare Visual Studio Code
Open VS Code and hit `Ctrl+Shift+P`.
Type `Install` and select `Extensions: Install Extensions`.
Make sure you install:
1. C/C++
2. CMake
3. CMake Tools
4. Cortex-Debug (optional: for debugging via a Picoprobe or Pi GPIO)
5. Markdown All in One (recommended: for preparing your own README.md)## Prepare your project
Edit `CMakeLists.txt` and follow the instructions, you should make sure you:
1. edit your project name
2. include the libraries you need
2. link the libraries to your project