Skip to content

peterzimon/pico-lib

Repository files navigation

Raspberry Pi Pico libraries

Utilities and drivers for RPI Pico.

Usage

  1. Navigate to your main repo in terminal and clone this repo as a git submodule to your main repo:
cd my-pico-project
git submodule add git@github.com:peterzimon/pico-lib.git
git commit -m "Added the damn pico-lib submodule to the project."
git push
  1. Add the pico-lib subdirectory to your main project's CMakeLists.txt file:
add_subdirectory(./pico-lib)
  1. Link the libraries you want to use to your main project. Each library's name is the same as the name of its containing directory, for example:
target_link_libraries(${PROJECT_NAME}
                        mcp48x2)

Alternatively instead of step 2 and 3, you can use the sample CMakeLists.txt from this repo as your main project's CMakeLists.txt file (just don't forget to remove the .sample extension).

  1. Include the library in your main project, for example:
#include <mcp48x2.h>

List of libs

  • mcp48x2: Driver for MCP4802, MCP4812 and MCP4822 DAC's
  • ringbuffer: Ringbuffer utility

About

Libraries for Raspberry Pi Pico

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published