forked from Nate711/StanfordDoggoProject
-
Notifications
You must be signed in to change notification settings - Fork 5
2. Teensy
Ian Goh edited this page Sep 7, 2021
·
1 revision
The code does not have a .ino
file. Instead we use PlatformIO to compile all the code in the src
and lib
folders and upload it to the teensy. This guide assumes you are running Ubuntu 20.04.
- Download and install official Microsoft Visual Studio Code. PlatformIO IDE is built on top of it.
- Open VSCode Extension Marketplace.
- Search for
PlatformIO IDE
extension and install the PlatformIO VSCode Extension.
- Open Linux udev rules (Other files > Linux udev rules).
- Save
00-teensy.rules
to/etc/udev/rules.d
.
- Open
.../SUTDoggo/Doggo
in VSCode. - Plug in the Teensy using a USB cable.
- Press Build (tick in the bottom left bar of VSCode).
- Press Upload (right arrow in the bottom left bar of VSCode).
Alternatively, run
platformio run --target upload
on the root Doggo folder (.../SUTDoggo/Doggo
) that contains theplatformio.ini
file.
All connections to the Teensy are shown below for reference. Subsequent sections will show the connections of each component.