GithubHelp home page GithubHelp logo

opatut / generate-arduino-makefile Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 19 KB

License: GNU Lesser General Public License v2.1

Python 83.08% Groff 7.86% Makefile 9.06%
arduino arduino-makefile python makefile ide cli

generate-arduino-makefile's Introduction

generate-arduino-makefile

This tool reads build instructions from your arduino IDE's installed packages and generates a Makefile, so you don't need to use the IDE.

Notice: This tool is work in progress, so it might not work with your board, on your machine, or with your code. Please report any bugs you encounter, so I can continue to improve it.

Disclaimer

You use this tool at your own risk. Nobody except you can be held liable for any damage done to anything or anybody by this tool.

This includes of course your precious hardware, so if you brick your device using this tool, that will be entirely your problem. Buy a new one and use something else.

Usage

See generate-arduino-makefile.py --help for command line instructions.

Example usage:

path/to/generate-arduino-makefile.py \
    --vendor adafruit \
    --board adafruit_feather_m0 \
    --architecture SAMD \
    --output Makefile \
    --source-dir src \
    --build-dir build \
    --lib Wire \
    --lib I2Cdev
make
make upload

Acknowledgements

This work is heavily inspired by Arduino-Makefile, and contains part of its source.

The arduino reset CLI tool ard-reset-arduino was written by Simon John and was published as part of Arduino-Makefile under LGPL v2.1.

What to do when things break

This tool might generate bad code for your device, and it might freeze. Maybe your PC won't detect it anymore. In this case, see if your vendor has instructions available for a bad code upload, and try resetting (reprogramming) the bootloader.

License

This tool and the related documentation and examples are free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See LICENSE.txt for the full license text.

generate-arduino-makefile's People

Contributors

opatut avatar

Stargazers

 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.