Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SSD1306 Examples fail on Arduino Nano 33 BLE #9345

Closed
adafruit/Adafruit_SSD1306
#151
Labels
Component: CoreRelated to the code for the standard Arduino API Type: Bug
@matthewsellis

Description

Having tried both the SSD1306 128x64 SPI and I2C examples from the Adafruit SSD1306 library with the Board set to 'Arduino nano 33 BLE', I see the following Errors when compiling:

C:\Users\matth\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'boolean Adafruit_SSD1306::begin(uint8_t, uint8_t, boolean, boolean)':
C:\Users\matth\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\matth\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:483:17: error: 'digitalPinToBitMask' was not declared in this scope
 dcPinMask = digitalPinToBitMask(dcPin);
 ^~~~~~~~~~~~~~~~~~~
C:\Users\matth\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:483:17: note: suggested alternative: 'digitalPinToPinName'
 dcPinMask = digitalPinToBitMask(dcPin);
 ^~~~~~~~~~~~~~~~~~~
 digitalPinToPinName
Multiple libraries were found for "SPI.h"
Used: C:\Users\matth\AppData\Local\Arduino15\packages\arduino\hardware\mbed1円.1.2\libraries\SPI
Multiple libraries were found for "Wire.h"
Used: C:\Users\matth\AppData\Local\Arduino15\packages\arduino\hardware\mbed1円.1.2\libraries\Wire
Multiple libraries were found for "Adafruit_GFX.h"
Used: C:\Users\matth\Documents\Arduino\libraries\Adafruit_GFX_Library
Multiple libraries were found for "Adafruit_SSD1306.h"
Used: C:\Users\matth\Documents\Arduino\libraries\Adafruit_SSD1306
exit status 1
Error compiling for board Arduino Nano 33 BLE.

I get a clean compile with no errors reported if I switch to (e.g.) original Arduino Nano board.

I originally raised this as a defect on the Adafruit ssd1306 library, and received a reply from Ladyada to the effect the issue is missing standard functions in the nRF528x library link

Package versions used:

  • Arduino nRF528x Boards (Mbed OS) by Arduino version 1.1.2
  • Adafruit GFX Library 1.6.1
  • Adafruit SSD1306 Library 1.3.0
  • Arduino IDE 1.8.10 on Win 10 1903

As an aside, some of the errors above relate to multiple versions of both Adafruit libraries being installed, but when I delete both libraries from the path specified in the errors above, the compile fails, reporting libraries missing. The library duplicate errors do not show when Arduino nano (non 33 BLE variant) is selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreRelated to the code for the standard Arduino API Type: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /