Devices & Components
Teensy 3.6
Software & Tools
Visual Micro
Visual Studio 2017
PJRC Teensyduino Installer
Arduino IDE
Project description
Code
Projectname.ino
arduino
Main Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
1byte state = 0; 2long counter = 0; 3 4// the setup function runs once when you press reset or power the board 5void setup() { 6 7 Serial.begin(115200); 8 pinMode(LED_BUILTIN, OUTPUT); 9} 10 11// the loop function runs over and over again until power down or reset 12void loop() { 13 Serial.println("Loop()"); 14 digitalWrite(LED_BUILTIN, state); 15 counter++; 16 state = sumOf(state, 1); // Function in another INO 17 state = state % 2; 18 delay(1000); 19} 20
Calcs.ino
arduino
Secondary Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
1 2int sumOf(int a, int b) { 3 int c = a + b; 4 return c; 5 6}
Projectname.ino
arduino
Main Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
1byte state = 0; 2long counter = 0; 3 4// the setup function runs once when you press reset or power the board 5void setup() { 6 7 Serial.begin(115200); 8 pinMode(LED_BUILTIN, OUTPUT); 9} 10 11// the loop function runs over and over again until power down or reset 12void loop() { 13 Serial.println("Loop()"); 14 digitalWrite(LED_BUILTIN, state); 15 counter++; 16 state = sumOf(state, 1); // Function in another INO 17 state = state % 2; 18 delay(1000); 19} 20
Calcs.ino
arduino
Secondary Sketch file for project to try with Teensy (just to demonstrate debugger and upload functionality)
1 2int sumOf(int a, int b) { 3 int c = a + b; 4 return c; 5 6}
Downloadable files
Teensyduino Board
Teensyduino Board

Comments
Only logged in users can leave comments