Hi folks,
Just received my Qwiic OLED Displays today and am trying to get them working with the Artemis Processor (+ MicroMod Data Logging Carrier Board).
When I try to upload an example from the Adafruit SS1306 library, I’m running into the following error. Do you have any thoughts on what could be wrong? I’m using Apollo3 Core v1.2.1.
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp: In member function 'bool Adafruit_SSD1306::begin(uint8_t, uint8_t, bool, bool)':
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:495:44: error: 'digitalPinToPort' was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:495:44: note: suggested alternative: 'digitalPinToInterrupt'
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~
digitalPinToInterrupt
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:495:25: error: 'portOutputRegister' was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~~~
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:496:17: error: 'digitalPinToBitMask' was not declared in this scope
dcPinMask = digitalPinToBitMask(dcPin);
^~~~~~~~~~~~~~~~~~~
/Users/adam/Documents/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:496:17: note: suggested alternative: 'digitalPinToInterrupt'
dcPinMask = digitalPinToBitMask(dcPin);
^~~~~~~~~~~~~~~~~~~
digitalPinToInterrupt
Cheers,
Adam