Git Product home page Git Product logo

teensytemplate's Introduction

Teensy 3.6 Project Template

Purpose

An easy starting point for Teensy 3.6 projects on Windows.
This template is meant to be used along side the TeensyToolchain.
This setup is not meant for Unix systems.
This setup is also meant only for the Teensy 3.6 although some tweaking can be done to be used on other boards.

Software

This template assumes you installed the following.

  • VSCode
    • This template is based around VSCode
  • CMake
    • Make sure to select the add CMake to path option when installing
  • Git
    • For version control of this repository

Setup

Download TeensyToolchain, unzip, and put it next to this template folder.

If it is not named already, rename the downloaded folder from to TeensyToolchain
e.g. TeensyToolchain-master -> TeensyToolchain

Alternatively, you can modify the TOOLCHAIN_OFFSET option inside .vscode/settings.json in order to tell the project where the toolchain is. This path is relative to this template folder.

Inside .vscode/settings.json, modify the options for TEENSY_USB_PORTNAME for the port that the project should use to connect to your teensy. ( Set to COM9 by default )
You can also modify the default values for other tasks in this file.

Using

Put your code in src/main.cpp
Put any libraries you need in libraries

VSCode Tasks

  • Clean: Clean up build files
  • Reset: Clean up entire CMake project
  • Build: Compile project
  • Upload: Upload compiled binary to teensy
  • Monitor: Monitor teensy over a CLI, select the appropriate options when running, defaults to ASCII mode

By default, Ctrl + Shift + B (Run Build Task) should run Build, Upload, and Monitor in that order.

Alternatively, install the Tasks extension so that tasks appear on the status bar.

CMake

You can modify the set values and compile flags inside CmakeLists.txt if you know what you are doing.
They are mostly under the function calls add_compile_definitions and add_compile_options towards the beginning.

teensytemplate's People

Contributors

lehuman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.