From e8b77c8aff829baf39a523b7d3404861fe4e1927 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Sun, 5 Jul 2020 17:36:20 -0400 Subject: [PATCH] added suggestion to overclock as a #pragma --- teensy/teensy.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teensy/teensy.ino b/teensy/teensy.ino index cf1f210..cb01959 100644 --- a/teensy/teensy.ino +++ b/teensy/teensy.ino @@ -14,6 +14,10 @@ #include "teensy-prefs.h" #include "teensy-println.h" +#if F_CPU < 240000000 +#pragma AiiE warning: performance will improve if you overclock the Teensy to 240MHz (F_CPU=240MHz) or 256MHz (F_CPU=256MHz) +#endif + #define RESETPIN 39 #define BATTERYPIN 32 #define SPEAKERPIN A21