crispyking
New member
I'm just starting out with Teensy and I'm amazed at how easy everything is.
I'm an old vim guy, so my first order of business is to get a decent GUI-free
build environment, so I've adapted Martin Oldfield's Arduino.mk Makefile
for doing command-line builds of Teensyduino sketches.
It finds and builds all required core and library source files, so you can keep your sketch directories clean.
I'm using it with a minimal Makefile that looks like:
I've only tested it somewhat with Teensy 3.0 and 2.0, so there may still be issues with other boards.
Paul, you're welcome to bundle it or adapt it into the official Teensyduino distribution.
View attachment Teensymk-01.zip
Next step is convert it to use teensy_loader_cli (haven't yet figured out how to get it to work with 3.0) and some way to read/write to Serial from the command-line...
-- Chris
I'm an old vim guy, so my first order of business is to get a decent GUI-free
build environment, so I've adapted Martin Oldfield's Arduino.mk Makefile
for doing command-line builds of Teensyduino sketches.
It finds and builds all required core and library source files, so you can keep your sketch directories clean.
I'm using it with a minimal Makefile that looks like:
Code:
TARGET = TestProj
ARDUINO_VERSION = 104
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
BOARD_TAG = teensy3
ARDUINO_LIBS = LiquidCrystal Encoder
include $(ARDUINO_DIR)/hardware/teensy/Teensy.mk
I've only tested it somewhat with Teensy 3.0 and 2.0, so there may still be issues with other boards.
Paul, you're welcome to bundle it or adapt it into the official Teensyduino distribution.
View attachment Teensymk-01.zip
Next step is convert it to use teensy_loader_cli (haven't yet figured out how to get it to work with 3.0) and some way to read/write to Serial from the command-line...
-- Chris