arduinocc
Published © GPL3+

Teensy Setup and Debugging

Get your Teensy Setup for Arduino, and start using the Serial debugger in Visual Micro straight away to solve those last few code issues....

BeginnerFull instructions provided7,246
Teensy Setup and Debugging

Things used in this project

Hardware components

Teensy 3.6
Teensy 3.6
(Or any Teensy Board)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio 2017
Microsoft Visual Studio 2017
Visual Micro
PJRC Teensyduino Installer

Story

Read more

Schematics

Teensyduino Board

Code

Projectname.ino

Arduino
Main Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
byte state = 0;
long counter = 0;

// the setup function runs once when you press reset or power the board
void setup() {

	Serial.begin(115200);
	pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again until power down or reset
void loop() {
	Serial.println("Loop()");
	digitalWrite(LED_BUILTIN, state);
	counter++;
	state = sumOf(state, 1); // Function in another INO
	state = state % 2;
	delay(1000);
}

Calcs.ino

Arduino
Secondary Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
int sumOf(int a, int b) {
	int c = a + b;
	return c;

}

Credits

arduinocc

arduinocc

2 projects • 13 followers

Comments