GithubHelp home page GithubHelp logo

irishpatrick / pico-servo Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 2.0 202 KB

A simple C library for controlling servos using a Raspberry Pi Pico

License: MIT License

CMake 30.57% C 67.92% Shell 1.51%
raspberrypipico servo c raspberry-pi-pico pico-servo sdk

pico-servo's People

Contributors

irishpatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pico-servo's Issues

submodules

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?

-lpico_servo no such file or directory

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.