I have to say that after trying two different things with the Redboard, and following the instructions… not one has gone well.
I bought some of these:
https://www.sparkfun.com/products/15171
went to the “Documents” section, and tried following both links…
Installed the required libraries (Adafruit GFX and SSD…)
Got the sample sketch…
Error:
:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function ‘boolean Adafruit_SSD1306::begin(uint8_t, uint8_t, boolean, boolean)’:
C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:482:47: error: ‘digitalPinToPort’ was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~
C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:482:47: note: suggested alternative: ‘digitalPinToInterrupt’
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~
digitalPinToInterrupt
C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:482:28: error: ‘portOutputRegister’ was not declared in this scope
dcPort = (PortReg *)portOutputRegister(digitalPinToPort(dcPin));
^~~~~~~~~~~~~~~~~~
C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:483:17: error: ‘digitalPinToBitMask’ was not declared in this scope
dcPinMask = digitalPinToBitMask(dcPin);
^~~~~~~~~~~~~~~~~~~
C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:483:17: note: suggested alternative: ‘digitalPinToInterrupt’
dcPinMask = digitalPinToBitMask(dcPin);
^~~~~~~~~~~~~~~~~~~
digitalPinToInterrupt
Multiple libraries were found for “Adafruit_SSD1306.h”
Used: C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_SSD1306
Multiple libraries were found for “SPI.h”
Used: C:\Users\ecorrales\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.12\libraries\SPI
Multiple libraries were found for “Wire.h”
Used: C:\Users\ecorrales\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.12\libraries\Wire
Multiple libraries were found for “Adafruit_GFX.h”
Used: C:\Users\ecorrales\Documents\Arduino\libraries\Adafruit_GFX_Library