Skip to content
Jannik edited this page Jan 15, 2021 · 14 revisions

Which version to use?

  • Teensyduino is not compatible to the WEB Editor version of Arduino

  • Arduino can be used in a portable mode. This is for example useful if you want to "freeze" a setup including compiler, Teensyduino and libraries for a special project. See here for details. https://www.arduino.cc/en/Guide/PortableIDE and this forum post

  • Portable mode is checked/activated as the IDE opens. So closing the IDE and renaming the 'portable' directory can easily be used to create an environment where it is used or not used.

  • For Windows only: The Windows app is not compatible to Teensyduino

  • Before installing the newest version of the IDE make sure that it is supported by Teensyduino. You find this information on the Teensyduino download page

Tipps & Tricks

IDE Preferences can be adjusted on dialog under (File > Preferences) or "Ctrl+,"

Switch on verbose compiler output.

On first installation the IDE does not show the full compiler output. You can (and should) activate this in the preferences dialog. (File > Preferences > Show verbose output during compilation).

Another preference option is to use an "External Editor".

All open files must be saved when selecting this option at first in the IDE - then the IDE will load and show the file direct from disk when building, but editing in the IDE is blocked to allow external editor control of the content. Once external file edits are saved returning to the IDE allows normal building and upload.

How to reformat a sketch

Within the IDE 'Ctrl+T' is the 'Tools / Auto Format'. It applies a reasonable set of indents and formatting to some standard. This is best used before posting code to the FORUM. Additionally when looking for build or syntax errors it can quickly point to a missing brace or other error that can result in compiler confusion in indicating the true source of the error.

How to get a clean build

Noted below the hex file is placed in a TEMP directory. Manually deleting the intermediate files and folders in that TEMP folder will force a clean build. Also closing and reopening the IDE would force a clean build. Generally a change to the 'Tools' menu for the build or board type has resulted in a rebuild, of course if the change makes the build not be as desired, it requires a change back and another rebuild.

Where is my *.hex file?

The hex file location during a normal build is in a TEMP directory - the path to that will show in the console window when Verbose output is selected in 'File / Preferences'.

Additionally using [both on the 'Sketch' menu] 'Ctrl + Alt + S' will 'Export a compiled Binary' into the Sketch folder. To 'Show Sketch Folder' use 'Ctrl + K'. That file can then be saved or moved.

Windows: Zip install without admin rights

To maintain one or more installs without using the executable installer the 'ZIP' file can be downloaded and extracted to any folder. In that folder is 'arduino.exe' that will start the IDE. To install TeensyDuino - point to that folder.

Downloading the Teensyduino installer will usually place the file TeensyduinoInstall.exe into the download folder. Windows won't let you execute this without admin rights. Just rename TeensyduinoInstall.exe to something not containing 'install' (e.g. tdi.exe) and move it out of the download folder. Voilà, it now installs without admin rights. Seems to be quite easy to outsmart Windows :-)

Arduino IDE extensions/plugins

A Arduino IDE extension is not a standalone tool, instead it can sometimes extend the functionality of the IDE. Here is the forum thread, until there is a separate page. https://forum.pjrc.com/threads/65798-Arduino-IDE-extensions-plugins

Please add more info

  • 2+2=4
  • Chuck Norris got Coronavirus. Now the Coronavirus is in isolation.
Clone this wiki locally