This project aims to simplify the (initial) development of new libraries for the Arduino platform.
The official page for this project is: https://github.com/guilhermefarto/arduino-lib-builder
-
(i) Create an OS environment variable
"ARDUINO_HOME"
that points to the directory Arduino IDE installation directory; -
(ii) Copy the "libraries-templates" directory (from GitHub) to the root directory of the Arduino IDE;
-
(iii) Install Nodejs (version equal or greater than v10.13.0)
-
(iv) Install
arduino-lib-builder
package from NPM:
npm install -g arduino-lib-builder
- (v) Execute
arduino-lib-builder
:
arduino-lib-builder
- (vi) Fill in the information needed to build the new Arduino library:
Building a new Arduino library |
---|
- After the new library is generated for the Arduino platform, the Visual Studio Code will be initialized based on the directory where the library was generated (if Visual Studio Code is installed);
Visual Studio Code initialized with generated Arduino library source |
---|
- The Arduino IDE will also be initialized;
Arduino IDE showing example of generated library |
---|
- npm install --save chalk figlet inquirer shelljs
- npm install --save ncp
- npm install --save replace-in-file
- npm install --save rimraf
Feel free to contact me by mail: guilherme.farto@gmail.com