Skip to content

Commit

Permalink
Nicer message for incompatible boards
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Aug 29, 2017
1 parent cd49797 commit b9ab085
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ILI9341_t3.h
Expand Up @@ -53,6 +53,12 @@
#include "Arduino.h"
#endif

#if defined(__MKL26Z64__)
#error "Sorry, ILI9341_t3 does not work with Teensy LC. Use Adafruit_ILI9341."
#elif defined(__AVR__)
#error "Sorry, ILI9341_t3 does not work with Teensy 2.0 or Teensy++ 2.0. Use Adafruit_ILI9341."
#endif

#define ILI9341_TFTWIDTH 240
#define ILI9341_TFTHEIGHT 320

Expand Down

0 comments on commit b9ab085

Please sign in to comment.