Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects. All programming is done via the USB port. No special programmer is needed, only a standard USB cable and a PC or Macintosh with a USB port.
For more detailed information please visit vendor site.
(valid only for Teensy LC, Teensy 3.0-3.6)
-D TEENSY_OPT_FASTER, default
-D TEENSY_OPT_FASTEST_PURE_CODE, valid only for Teensy 3.5-3.6
-D TEENSY_OPT_FASTEST_PURE_CODE_LTO, valid only for Teensy 3.5-3.6
The only one macro can be used in per one build environment. Also, you can see
verbose build using
-v, --verbose option for platformio run command.
Let’s set optimization for the smallest code
[env:teensy_hid_device] platform = teensy framework = arduino board = teensy36 build_flags = -D TEENSY_OPT_SMALLEST_CODE
If you want to use Teensy USB Features, you need to add special macro/define using build_flags:
A default macro is set to
-D USB_SERIAL if no one is specified.
[env:teensy_hid_device] platform = teensy framework = arduino board = teensy20 build_flags = -D USB_RAWHID
See Teensy USB Examples.
Examples are listed from Teensy development platform repository:
PIO Unified Debugger - “1-click” solution for debugging with a zero configuration.
Supported debugging tools are listed in “Debug” column. For more detailed information, please scroll table by horizontal. You can switch between debugging Tools & Debug Probes using debug_tool option in “platformio.ini” (Project Configuration File).
You will need to install debug tool drivers depending on your system. Please click on compatible debug tool below for the further instructions.
Boards listed below are compatible with PIO Unified Debugger but DEPEND ON external debug probe. They ARE NOT READY for debugging. Please click on board name for the further details.
|Teensy 3.1 / 3.2||MK20DX256||72MHz||256KB||64KB|
; Latest stable version [env:latest_stable] platform = teensy board = ... ; Custom stable version [env:custom_stable] platform = [email protected] board = ...
[env:upstream_develop] platform = https://github.com/platformio/platform-teensy.git board = ...
|framework-arduinoteensy||Arduino Wiring-based Framework|
|tool-jlink||SEGGER J-Link Software and Documentation Pack|
Teensy programming uses only Windows built-in HID drivers. When Teensy is programmed to act as a USB Serial device, Windows XP, Vista, 7 and 8 require this serial driver is needed to access the COM port your program uses. No special driver installation is necessary on Windows 10.
|Arduino||Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.|
|mbed||The mbed framework The mbed SDK has been designed to provide enough hardware abstraction to be intuitive and concise, yet powerful enough to build complex projects. It is built on the low-level ARM CMSIS APIs, allowing you to code down to the metal if needed. In addition to RTOS, USB and Networking libraries, a cookbook of hundreds of reusable peripheral and module libraries have been built on top of the SDK by the mbed Developer Community.|
|Teensy 3.1 / 3.2||External||MK20DX256||72MHz||256KB||64KB|