Skip to content

Compilation fails on Teensy 3.6 #11

Discussion options

You must be logged in to vote

Do you know if there is a specific define for the Teensy 4.0 and 4.1?

I found this:

#ifndef TEENSY_BOARD_DETECTION_H_INCLUDED
#define TEENSY_BOARD_DETECTION_H_INCLUDED

// Teensy-4.x
#if defined(__IMXRT1062__) || defined (ARDUINO_TEENSY40) || defined (ARDUINO_TEENSY41)
#define TEENSY4
#if defined (ARDUINO_TEENSY40)
#define TEENSY4_0
#elif defined (ARDUINO_TEENSY41)
#define TEENSY4_1
#endif
#endif

// Teensy-3.6
#if defined(__MK66FX1M0__)
#  define TEENSY3_6
#endif

// Teensy-3.5
#if defined (__MK64FX512__)
#define TEENSY3_5
#endif

#endif

Also see https://github.com/PaulStoffregen/teensy_size/blob/main/minimal_elf.c

Is the board LED pin the same pin 13 as on the Teensy 4.0?

Yes, see h…

Replies: 8 comments 57 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@corrados
Comment options

Answer selected by corrados
Comment options

You must be logged in to vote
25 replies
@thijstriemstra
Comment options

@corrados
Comment options

@corrados
Comment options

@thijstriemstra
Comment options

@corrados
Comment options

Comment options

You must be logged in to vote
9 replies
@corrados
Comment options

@thijstriemstra
Comment options

@corrados
Comment options

@thijstriemstra
Comment options

@thijstriemstra
Comment options

Comment options

You must be logged in to vote
22 replies
@corrados
Comment options

@jstma
Comment options

@jstma
Comment options

@thijstriemstra
Comment options

@jstma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants