Skip to content

Commit

Permalink
Merge pull request #47 from sergev/master
Browse files Browse the repository at this point in the history
Fix build issues on esp32 and pic32 platforms. (Also works for ESP8266)
  • Loading branch information
drak7 authored Jul 29, 2019
2 parents 1f22156 + a5984b3 commit bd8f1a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Adafruit_PCD8544.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ All text above, and the splash screen below must be included in any redistributi
*********************************************************************/

//#include <Wire.h>
#ifdef __AVR__
#include <avr/pgmspace.h>
#endif

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
Expand Down
5 changes: 4 additions & 1 deletion Adafruit_PCD8544.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ All text above, and the splash screen must be included in any redistribution
#if defined(__SAM3X8E__) || defined(ARDUINO_ARCH_SAMD)
typedef volatile RwReg PortReg;
typedef uint32_t PortMask;
#else
#elif defined(__AVR__)
typedef volatile uint8_t PortReg;
typedef uint8_t PortMask;
#else
typedef volatile uint32_t PortReg;
typedef uint32_t PortMask;
#endif


Expand Down

0 comments on commit bd8f1a3

Please sign in to comment.