GithubHelp home page GithubHelp logo

madskjeldgaard / picoosc Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 26 KB

OSC communication for the Raspberry Pi Pico using the C++ SDK

License: MIT License

C++ 94.63% CMake 5.37%
lwip open-sound-control osc raspberry-pi-pico raspberry-pi-pico-rp2040 raspberry-pi-pico-sdk raspberry-pi-pico-w

picoosc's Introduction

PicoOSC

A simple library for OSC communication using the lwip library that comes with the Raspberry Pi Pico C++ SDK.

This library was written for the Raspberry Pi Pico, but it should be able to work on other platforms that use lwip with a few modifications.

Support

This library is still a work in progress. Feel free to contribute to make it fully compatible with the whole osc specification !

It currently supports:

  • ✅ An OSC client interface:
    • ❌ multiple types in one message
    • OSC Message types:
      • ✅ string
      • ✅ float
      • ✅ int
      • ❌ blob
      • ❌ time tag
  • ❌ An OSC server interface
  • ❌ Bundles

Usage example

Sending an integer

// Setup UDP target
const auto target = "192.168.0.105";
const auto port = 3333;

picoosc::OSCClient client(target, port);

// Make an integer message
picoosc::OSCMessage msg;

msg.addAddress("/picoint");
msg.add<int32_t>(8); 

// Send the message
msg.send(client);

Adding this library to your project

Using CPM

The easiest way to use this in your project is to install it using CPM. Add the following lines to your CMakeLists.txt. This will automatically download and include it in your CMake setup.

# Add Debounce
CPMAddPackage("gh:madskjeldgaard/PicoOSC#main")
target_link_libraries(SimplePicoMidiController PicoOSC)

Manually

If you have a project called SimplePicoMidiController, you can link this library in your CMakeLists.txt like so (assuming you downloaded the library and placed it in the path noted below):

# Add Debounce
set(PICO_OSC_PATH "include/PicoOSC")
add_subdirectory(${PICO_OSC_PATH})
target_link_libraries(SimplePicoMidiController PicoOSC)

picoosc's People

Stargazers

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

Watchers

 avatar  avatar  avatar

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.