Skip to content

Commit 2b7ef3e

Browse files
author
Jim Lindblom
committed
Merge pull request #6 from code0100fun/arm-pgmspace
Load <avr/pgmspace.h> for Teensy3
2 parents 8a7c1c4 + c948bce commit 2b7ef3e

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

src/SFE_MicroOLED.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License
3434
along with this program. If not, see <http://www.gnu.org/licenses/>.
3535
******************************************************************************/
3636
#include <Arduino.h>
37-
#ifdef __AVR__
37+
#if defined(__AVR__) || defined(__arm__)
3838
#include <avr/pgmspace.h>
3939
#else
4040
#include <pgmspace.h>

src/SFE_MicroOLED.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4141
#include <stdio.h>
4242
#include <Arduino.h>
4343

44-
#ifdef __AVR__
44+
#if defined(__AVR__) || defined(__arm__)
4545
#include <avr/pgmspace.h>
4646
#else
4747
#include <pgmspace.h>

src/util/7segment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ July 27, 2015
2525
#ifndef FONT7SEGMENT_H
2626
#define FONT7SEGMENT_H
2727

28-
#ifdef __AVR__
28+
#if defined(__AVR__) || defined(__arm__)
2929
#include <avr/pgmspace.h>
3030
#else
3131
#include <pgmspace.h>

src/util/font5x7.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ July 27, 2015
2525
#ifndef FONT5X7_H
2626
#define FONT5X7_H
2727

28-
#ifdef __AVR__
28+
#if defined(__AVR__) || defined(__arm__)
2929
#include <avr/pgmspace.h>
3030
#else
3131
#include <pgmspace.h>

src/util/font8x16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ July 27, 2015
2424
#ifndef FONT8X16_H
2525
#define FONT8X16_H
2626

27-
#ifdef __AVR__
27+
#if defined(__AVR__) || defined(__arm__)
2828
#include <avr/pgmspace.h>
2929
#else
3030
#include <pgmspace.h>

src/util/fontlargeletter31x48.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ August 13, 2015
1919

2020
#ifndef FONTLARGELETTER31X48_H
2121
#define FONTLARGELETTER31X48_H
22-
#include <avr/pgmspace.h>
22+
#if defined(__AVR__) || defined(__arm__)
23+
#include <avr/pgmspace.h>
24+
#else
25+
#include <pgmspace.h>
26+
#endif
2327
static const unsigned char fontlargeletter31x48 [] PROGMEM = {
2428
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
2529
31,48,65,58,0,62,

src/util/fontlargenumber.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ July 27, 2015
2525
#ifndef FONTLARGENUMBER_H
2626
#define FONTLARGENUMBER_H
2727

28-
#ifdef __AVR__
28+
#if defined(__AVR__) || defined(__arm__)
2929
#include <avr/pgmspace.h>
3030
#else
3131
#include <pgmspace.h>

0 commit comments

Comments
 (0)