Skip to content

Commit 7f88c1a

Browse files
author
Toni Klopfenstein
committed
Merge branch 'emil01-master'
2 parents 4815895 + 86a183c commit 7f88c1a

File tree

7 files changed

+71
-7
lines changed

7 files changed

+71
-7
lines changed

src/SFE_MicroOLED.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Jim Lindblom @ SparkFun Electronics
66
October 26, 2014
77
https://github.com/sparkfun/Micro_OLED_Breakout/tree/master/Firmware/Arduino/libraries/SFE_MicroOLED
88
9+
Modified by:
10+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
11+
July 27, 2015
12+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
13+
914
This file defines the hardware interface(s) for the Micro OLED Breakout. Those
1015
interfaces include SPI, I2C and a parallel bus.
1116
@@ -28,8 +33,12 @@ GNU General Public License for more details.
2833
You should have received a copy of the GNU General Public License
2934
along with this program. If not, see <http://www.gnu.org/licenses/>.
3035
******************************************************************************/
31-
32-
#include <avr/pgmspace.h>
36+
#include <Arduino.h>
37+
#ifdef __AVR__
38+
#include <avr/pgmspace.h>
39+
#else
40+
#include <pgmspace.h>
41+
#endif
3342
#include <SFE_MicroOLED.h>
3443

3544
// This fixed ugly GCC warning "only initialized variables can be placed into program memory area"

src/SFE_MicroOLED.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Jim Lindblom @ SparkFun Electronics
66
October 26, 2014
77
https://github.com/sparkfun/Micro_OLED_Breakout/tree/master/Firmware/Arduino/libraries/SFE_MicroOLED
88
9+
Modified by:
10+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
11+
July 27, 2015
12+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
13+
14+
915
This file defines the hardware interface(s) for the Micro OLED Breakout. Those
1016
interfaces include SPI, I2C and a parallel bus.
1117
@@ -34,7 +40,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3440

3541
#include <stdio.h>
3642
#include <Arduino.h>
37-
#include <avr/pgmspace.h>
43+
44+
#ifdef __AVR__
45+
#include <avr/pgmspace.h>
46+
#else
47+
#include <pgmspace.h>
48+
#endif
3849

3950
#define swap(a, b) { uint8_t t = a; a = b; b = t; }
4051

src/hardware.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Jim Lindblom @ SparkFun Electronics
66
October 26, 2014
77
https://github.com/sparkfun/Micro_OLED_Breakout/tree/master/Firmware/Arduino/libraries/SFE_MicroOLED
88
9+
Modified by:
10+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
11+
July 27, 2015
12+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
13+
914
This file defines the hardware interface(s) for the Micro OLED Breakout. Those
1015
interfaces include SPI, I2C and a parallel bus.
1116

src/util/7segment.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ GNU General Public License for more details.
1515
1616
You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Modified by:
20+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
21+
July 27, 2015
22+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
23+
1824
******************************************************************************/
1925
#ifndef FONT7SEGMENT_H
2026
#define FONT7SEGMENT_H
2127

22-
#include <avr/pgmspace.h>
28+
#ifdef __AVR__
29+
#include <avr/pgmspace.h>
30+
#else
31+
#include <pgmspace.h>
32+
#endif
2333

2434
static const unsigned char sevensegment [] PROGMEM = {
2535
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)

src/util/font5x7.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ GNU General Public License for more details.
1515
1616
You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Modified by:
20+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
21+
July 27, 2015
22+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
23+
1824
******************************************************************************/
1925
#ifndef FONT5X7_H
2026
#define FONT5X7_H
2127

22-
#include <avr/pgmspace.h>
28+
#ifdef __AVR__
29+
#include <avr/pgmspace.h>
30+
#else
31+
#include <pgmspace.h>
32+
#endif
2333

2434
// Standard ASCII 5x7 font
2535
static const unsigned char font5x7[] PROGMEM = {

src/util/font8x16.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ GNU General Public License for more details.
1515
1616
You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Modified by:
20+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
21+
July 27, 2015
22+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
1823
******************************************************************************/
1924
#ifndef FONT8X16_H
2025
#define FONT8X16_H
2126

22-
#include <avr/pgmspace.h>
27+
#ifdef __AVR__
28+
#include <avr/pgmspace.h>
29+
#else
30+
#include <pgmspace.h>
31+
#endif
2332

2433
static const unsigned char font8x16[] PROGMEM = {
2534
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)

src/util/fontlargenumber.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ GNU General Public License for more details.
1515
1616
You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Modified by:
20+
Emil Varughese @ Edwin Robotics Pvt. Ltd.
21+
July 27, 2015
22+
https://github.com/emil01/SparkFun_Micro_OLED_Arduino_Library/
23+
1824
******************************************************************************/
1925
#ifndef FONTLARGENUMBER_H
2026
#define FONTLARGENUMBER_H
2127

22-
#include <avr/pgmspace.h>
28+
#ifdef __AVR__
29+
#include <avr/pgmspace.h>
30+
#else
31+
#include <pgmspace.h>
32+
#endif
2333

2434
static const unsigned char fontlargenumber[] PROGMEM = {
2535
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)

0 commit comments

Comments
 (0)