An easy starting point for a Teensy 3.X project which might not fit inside the arduino build environment.
- You need to modify the teensy core
- You don't love Java IDE's
- You love Make
- Because
- Put your code in
src/main.cpp - Put any libraries you need in
libraries - Set the TEENSY variable in
Makefileaccording to your teensy version - Build your code
make - Upload your code
make upload
makealias formake hexmake buildcompiles everything and produces a .elfmake hexconverts the elf to an intel hex filemake post_compileopens the launcher with the correct filemake uploaduploads the hex file to a teensy boardmake rebootreboots the teensy
- The
teensy3sub-folder is taken from The Teensy 3 Cores - The
toolssub-folder is taken from Teensyduino - The
src/main.cppfile is moved, unmodified fromteensy3/main.cpp - The
Makefilefile is moved, modified fromteensy3/Makefile
Modifications to Makefile include
- Add support for arduino libraries
- Change tools directory
- Calculate target name from current directory
- Prettify rule output
- Do not upload by default, only build