Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opatut/generate-arduino-makefile
https://github.com/opatut/generate-arduino-makefile
arduino arduino-makefile cli ide makefile python
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opatut/generate-arduino-makefile
- Owner: opatut
- License: lgpl-2.1
- Created: 2016-11-27T21:34:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T18:35:18.000Z (almost 8 years ago)
- Last Synced: 2023-03-11T13:34:55.870Z (almost 2 years ago)
- Topics: arduino, arduino-makefile, cli, ide, makefile, python
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://github.com/opatut/generate-arduino-makefile) 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](https://github.com/sudar/Arduino-Makefile), and contains part of its source.
The arduino reset CLI tool [ard-reset-arduino](https://github.com/sudar/Arduino-Makefile/blob/master/bin/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.