Skip to content

brainstorming: how would you recommend to compile / "install" an external non arduino library #36

Answered by nigelb
jerabaul29 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jerabaul29,

How did you go with this? I had a play.

If you run these commands to create a new project:

mkdir code2_test
cd code2_test
pio init --board SparkFun_RedBoard_Artemis_ATP
mkdir scripts
cd lib
mkdir Trace
mkdir Trace/src
git clone https://github.com/drowe67/codec2.git

Then create Trace/src/Trace.h

#ifndef TRACE_H
#define TRACE_H

#include "stdlib.h"

size_t trace_write(char* buffer, size_t buf_idx_ptr);

#endif

and create Trace/library.json:

{
    "name": "Trace",
    "version": "0.0.1",
    "description": "",
    "repository": {
      "type": "git",
      "url": ""
    },
    "keywords": [
      
    ],
    "authors": [
      {
        "name": ""
      }
    ],
    "frameworks"

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jerabaul29
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #34 on April 08, 2022 12:28.