adafruit / Adafruit-SSD1331-OLED-Driver-Library-for-Arduino

For 0.96" OLEDs in the Adafruit shop
http://www.adafruit.com/products/684
Other
100 stars 67 forks source link

ESP8266 "PortReg" type errors - Fixed now. #9

Closed artkeller closed 6 years ago

artkeller commented 7 years ago

Dear Adafruit Team! Thanks for the Adafruit-SSD1331-OLED-Driver-Library-for-Arduino lib.

I compiled with ESP8266 but got PortReg type errors. The following fix in file Adafruit_SSD1331.h worked fine for me.

line 25:
#ifdef __SAM3X8E__
typedef volatile RwReg PortReg;
typedef uint32_t PortMask;
#define _BV(b) (1<<(b))
#elif defined(ESP8266)
typedef volatile uint32_t PortReg;
typedef uint32_t PortMask;
#else
typedef volatile uint8_t PortReg;
typedef uint8_t PortMask;
#endif

BR, Thomas

mattratto commented 6 years ago

did same for feather nrf52 - fixed issues.

ladyada commented 6 years ago

hiya i think we fixed this in the "spitft" branch - can you try that and let me know?