Skip to content

Commit 04a17d6

Browse files
committed
Use original IRremote library on ARM targets
1 parent 68c2538 commit 04a17d6

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

MyIRremote.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#ifndef My_IRremote_h
1717
#define My_IRremote_h
18+
// ARM benutzt die normale IRremote Bibliothek
19+
#ifndef __arm__
1820

1921
// The following are compile-time library options.
2022
// If you change them, recompile the library.
@@ -126,3 +128,5 @@ class IRsend
126128
#define MARK_EXCESS 100
127129

128130
#endif
131+
132+
#endif

MyIRremoteInt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#ifndef My_IRremoteint_h
1919
#define My_IRremoteint_h
20+
#ifndef __arm__
2021

2122
#if defined(ARDUINO) && ARDUINO >= 100
2223
#include <Arduino.h>
@@ -515,3 +516,4 @@ extern volatile irparams_t irparams;
515516
#endif
516517

517518
#endif
519+
#endif

Qlockthree.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@
180180
#include "IRTranslatorMooncandles.h"
181181
#include "IRTranslatorLunartec.h"
182182
#include "IRTranslatorCLT.h"
183+
// Der Teenys hat 256k Flash und kein Problem mit der großen Orginal Bibliothek
184+
#ifdef __arm__
185+
#include <IRremote.h>
186+
#endif
187+
183188
#include "MyIRremote.h"
184189
#include "MyRTC.h"
185190
#include "TeensyRTC.h"

0 commit comments

Comments
 (0)