irishpatrick / pico-servo Goto Github PK
View Code? Open in Web Editor NEWA simple C library for controlling servos using a Raspberry Pi Pico
License: MIT License
A simple C library for controlling servos using a Raspberry Pi Pico
License: MIT License
Not being a git officianado, it's just taken me 30mins to work out how to do this:
git submodule update --init --recursive
...perhaps put it in the makefile, or add a ./configure, or drop a comment in the readme, for future non-git-experts?
did as the instructions said
when i run make
in my project folder i get /usr/lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: cannot find -lpico_servo: No such file or directory
my cmake file for the project
# Generated Cmake Pico project file
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Initialise pico_sdk from installed location
# (note this can come from environment, CMake cache etc)
set(PICO_SDK_PATH "/home/keyvan/Desktop/pico/pico-sdk")
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
include(./lib/RF24/CMakeLists.txt)
#include(lib/pico_servo/CMakeLists.txt)
project(test C CXX ASM)
# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()
# Add executable. Default name is the project name, version 0.1
add_executable(test test.cpp )
pico_set_program_name(test "test")
pico_set_program_version(test "0.1")
pico_enable_stdio_uart(test 1)
pico_enable_stdio_usb(test 1)
# Add the standard library to the build
link_directories(${CMAKE_SOURCE_DIR}/lib)
target_link_libraries(test pico_stdlib RF24 hardware_pwm pico_servo)
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR} lib/pico-servo/include)
#target_include_directories( lib/pico-servo/include)
# Add any user requested libraries
target_link_libraries(test
hardware_spi
hardware_pio
hardware_adc
pico_multicore
hardware_pwm
)
pico_add_extra_outputs(test)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.