0

Adafruit_SSD1306 library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit_SSD1306 library

by somewhereinusa on Thu Dec 27, 2018 1:10 pm

I'm working on a project that uses a .94 OLED. I need the library Adafruit SSD1306. I have been working on this for over a week. I can't get any of the 5 examples that come with the library to compile. I have tried clearing everything that relates to that library from all of my drives, downloaded the library from github numerous times just to make sure something isn't corrupted. I've tried using the zip library manager and also doing it manually. Here's a screenshot of where it is located.

Image

I have also removed and installed the latest Arduino IDE. All of the other example sketches work just fine. I have a windows 10, I tried it yesterday on my windows 8 computer. Everything worked as it should and I successfully uploaded it to a Nano.

Here is the error that I get
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:3:4: error: stray '@' in program

  * @file Adafruit_SSD1306.cpp

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:5:4: error: stray '@' in program

  * @mainpage Arduino library for monochrome OLEDs based on SSD1306 drivers.

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:7:4: error: stray '@' in program

  * @section intro_sec Introduction

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:9:38: warning: missing terminating ' character

  * This is documentation for Adafruit's SSD1306 library for monochrome

                                      ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:9:2: error: missing terminating ' character

  * This is documentation for Adafruit's SSD1306 library for monochrome

  ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:15:4: warning: character constant too long for its type

  * 'bitbang' software SPI are both supported.

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:21:4: error: stray '@' in program

  * @section dependencies Dependencies

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:27:4: error: stray '@' in program

  * @section author Author

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:32:4: error: stray '@' in program

  * @section license License

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1:1: error: expected unqualified-id before '/' token

 /test

 ^

In file included from c:\users\richard w bruner\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\lib\gcc\avr\5.4.0\include\stdint.h:9:0,

                 from c:\users\richard w bruner\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\avr\include\inttypes.h:37,

                 from c:\users\richard w bruner\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\avr\include\avr\pgmspace.h:88,

                 from C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:40:

c:\users\richard w bruner\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\avr\include\stdint.h:163:9: error: 'int8_t' does not name a type

 typedef int8_t   int_least8_t;

         ^

c:\users\richard w bruner\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\avr\include\stdint.h:217:9: error: 'int8_t' does not name a type

 typedef int8_t int_fast8_t;

         ^

In file included from C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit-GFX-Library/Adafruit_GFX.h:10:0,

                 from C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:52:

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit-GFX-Library/gfxfont.h:16:2: error: 'int8_t' does not name a type

  int8_t   xOffset;          ///< X dist from cursor pos to UL corner

  ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit-GFX-Library/gfxfont.h:17:9: error: 'int8_t' does not name a type

         int8_t   yOffset;          ///< Y dist from cursor pos to UL corner

         ^

In file included from C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:53:0:

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:118:62: error: 'int8_t' has not been declared

   Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi=&Wire, int8_t rst_pin=-1,

                                                              ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:120:42: error: 'int8_t' has not been declared

   Adafruit_SSD1306(uint8_t w, uint8_t h, int8_t mosi_pin, int8_t sclk_pin,

                                          ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:120:59: error: 'int8_t' has not been declared

   Adafruit_SSD1306(uint8_t w, uint8_t h, int8_t mosi_pin, int8_t sclk_pin,

                                                           ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:121:5: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin);

     ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:121:20: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin);

                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:121:36: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin);

                                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:123:5: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate=8000000UL);

     ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:123:20: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate=8000000UL);

                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:123:36: error: 'int8_t' has not been declared

     int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate=8000000UL);

                                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:126:27: error: expected ')' before 'mosi_pin'

   Adafruit_SSD1306(int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin,

                           ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:128:27: error: expected ')' before 'dc_pin'

   Adafruit_SSD1306(int8_t dc_pin, int8_t rst_pin, int8_t cs_pin);

                           ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:129:27: error: expected ')' before 'rst_pin'

   Adafruit_SSD1306(int8_t rst_pin = -1);

                           ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:164:3: error: 'int8_t' does not name a type

   int8_t       i2caddr, vccstate, page_end;

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.h:165:3: error: 'int8_t' does not name a type

   int8_t       mosiPin    ,  clkPin    ,  dcPin    ,  csPin, rstPin;

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:168:3: error: 'int8_t' has not been declared

   int8_t rst_pin, uint32_t clkDuring, uint32_t clkAfter) :

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In constructor 'Adafruit_SSD1306::Adafruit_SSD1306(uint8_t, uint8_t, TwoWire*, int, uint32_t, uint32_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:170:3: error: class 'Adafruit_SSD1306' does not have any field named 'mosiPin'

   mosiPin(-1), clkPin(-1), dcPin(-1), csPin(-1), rstPin(rst_pin),

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:170:16: error: class 'Adafruit_SSD1306' does not have any field named 'clkPin'

   mosiPin(-1), clkPin(-1), dcPin(-1), csPin(-1), rstPin(rst_pin),

                ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:170:28: error: class 'Adafruit_SSD1306' does not have any field named 'dcPin'

   mosiPin(-1), clkPin(-1), dcPin(-1), csPin(-1), rstPin(rst_pin),

                            ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:170:39: error: class 'Adafruit_SSD1306' does not have any field named 'csPin'

   mosiPin(-1), clkPin(-1), dcPin(-1), csPin(-1), rstPin(rst_pin),

                                       ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:170:50: error: class 'Adafruit_SSD1306' does not have any field named 'rstPin'

   mosiPin(-1), clkPin(-1), dcPin(-1), csPin(-1), rstPin(rst_pin),

                                                  ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: At global scope:

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:202:3: error: 'int8_t' has not been declared

   int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin, int8_t rst_pin,

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:202:20: error: 'int8_t' has not been declared

   int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin, int8_t rst_pin,

                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:202:37: error: 'int8_t' has not been declared

   int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin, int8_t rst_pin,

                                     ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:202:52: error: 'int8_t' has not been declared

   int8_t mosi_pin, int8_t sclk_pin, int8_t dc_pin, int8_t rst_pin,

                                                    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:203:3: error: 'int8_t' has not been declared

   int8_t cs_pin) : Adafruit_GFX(w, h), spi(NULL), wire(NULL), buffer(NULL),

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In constructor 'Adafruit_SSD1306::Adafruit_SSD1306(uint8_t, uint8_t, int, int, int, int, int)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:204:3: error: class 'Adafruit_SSD1306' does not have any field named 'mosiPin'

   mosiPin(mosi_pin), clkPin(sclk_pin), dcPin(dc_pin), csPin(cs_pin),

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:204:22: error: class 'Adafruit_SSD1306' does not have any field named 'clkPin'

   mosiPin(mosi_pin), clkPin(sclk_pin), dcPin(dc_pin), csPin(cs_pin),

                      ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:204:40: error: class 'Adafruit_SSD1306' does not have any field named 'dcPin'

   mosiPin(mosi_pin), clkPin(sclk_pin), dcPin(dc_pin), csPin(cs_pin),

                                        ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:204:55: error: class 'Adafruit_SSD1306' does not have any field named 'csPin'

   mosiPin(mosi_pin), clkPin(sclk_pin), dcPin(dc_pin), csPin(cs_pin),

                                                       ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:205:3: error: class 'Adafruit_SSD1306' does not have any field named 'rstPin'

   rstPin(rst_pin) {

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: At global scope:

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:235:3: error: 'int8_t' has not been declared

   int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate) :

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:235:18: error: 'int8_t' has not been declared

   int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate) :

                  ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:235:34: error: 'int8_t' has not been declared

   int8_t dc_pin, int8_t rst_pin, int8_t cs_pin, uint32_t bitrate) :

                                  ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In constructor 'Adafruit_SSD1306::Adafruit_SSD1306(uint8_t, uint8_t, SPIClass*, int, int, int, uint32_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:237:3: error: class 'Adafruit_SSD1306' does not have any field named 'mosiPin'

   mosiPin(-1), clkPin(-1), dcPin(dc_pin), csPin(cs_pin), rstPin(rst_pin) {

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:237:16: error: class 'Adafruit_SSD1306' does not have any field named 'clkPin'

   mosiPin(-1), clkPin(-1), dcPin(dc_pin), csPin(cs_pin), rstPin(rst_pin) {

                ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:237:28: error: class 'Adafruit_SSD1306' does not have any field named 'dcPin'

   mosiPin(-1), clkPin(-1), dcPin(dc_pin), csPin(cs_pin), rstPin(rst_pin) {

                            ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:237:43: error: class 'Adafruit_SSD1306' does not have any field named 'csPin'

   mosiPin(-1), clkPin(-1), dcPin(dc_pin), csPin(cs_pin), rstPin(rst_pin) {

                                           ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:237:58: error: class 'Adafruit_SSD1306' does not have any field named 'rstPin'

   mosiPin(-1), clkPin(-1), dcPin(dc_pin), csPin(cs_pin), rstPin(rst_pin) {

                                                          ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: At global scope:

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:269:35: error: expected constructor, destructor, or type conversion before '(' token

 Adafruit_SSD1306::Adafruit_SSD1306(int8_t mosi_pin, int8_t sclk_pin,

                                   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:297:35: error: expected constructor, destructor, or type conversion before '(' token

 Adafruit_SSD1306::Adafruit_SSD1306(int8_t dc_pin, int8_t rst_pin,

                                   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:320:35: error: expected constructor, destructor, or type conversion before '(' token

 Adafruit_SSD1306::Adafruit_SSD1306(int8_t rst_pin) :

                                   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_command1(uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:365:29: error: 'i2caddr' was not declared in this scope

     wire->beginTransmission(i2caddr);

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_commandList(const uint8_t*, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:379:29: error: 'i2caddr' was not declared in this scope

     wire->beginTransmission(i2caddr);

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_command(uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:410:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:412:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'boolean Adafruit_SSD1306::begin(uint8_t, uint8_t, boolean, boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:467:3: error: 'vccstate' was not declared in this scope

   vccstate = vcs;

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:473:5: error: 'i2caddr' was not declared in this scope

     i2caddr = addr ? addr : ((HEIGHT == 32) ? 0x3C : 0x3D);

     ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:480:13: error: 'dcPin' was not declared in this scope

     pinMode(dcPin, OUTPUT); // Set data/command pin as output

             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:481:13: error: 'csPin' was not declared in this scope

     pinMode(csPin, OUTPUT); // Same for chip select

             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:493:15: error: 'mosiPin' was not declared in this scope

       pinMode(mosiPin, OUTPUT); // MOSI and SCLK outputs

               ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:494:15: error: 'clkPin' was not declared in this scope

       pinMode(clkPin , OUTPUT);

               ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:508:16: error: 'rstPin' was not declared in this scope

   if(reset && (rstPin >= 0)) {

                ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:517:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:580:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::display()':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:888:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:910:29: error: 'i2caddr' was not declared in this scope

     wire->beginTransmission(i2caddr);

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:928:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrollright(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:946:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:959:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrollleft(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:972:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:985:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrolldiagright(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:998:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1015:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrolldiagleft(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1028:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1045:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::stopscroll()':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1053:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1055:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'virtual void Adafruit_SSD1306::invertDisplay(boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1074:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1076:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::dim(boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1093:17: error: 'vccstate' was not declared in this scope

     contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x9F : 0xCF;

                 ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:88:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(wireClk)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:115:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1097:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:89:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:124:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1100:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


It looks to me like it isn't finding or reading the "Adafruit_SSD1306.cpp" file. I have verified that that file contains information.

I'm sure this is a problem with MY computer, I just don't know where else to look.

somewhereinusa
 
Posts: 37
Joined: Thu Nov 21, 2013 11:42 am

Re: Adafruit_SSD1306 library

by somewhereinusa on Fri Dec 28, 2018 5:46 pm

Oops, I posted the wrong error code. This is the one I get with the latest Library Update using Library Manager in Arduino.
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_command(uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:409:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:411:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'boolean Adafruit_SSD1306::begin(uint8_t, uint8_t, boolean, boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:516:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:579:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::display()':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:887:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:927:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrollright(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:945:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:958:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrollleft(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:971:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:984:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrolldiagright(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:997:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1014:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::startscrolldiagleft(uint8_t, uint8_t)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1027:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1044:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::stopscroll()':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1052:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1054:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'virtual void Adafruit_SSD1306::invertDisplay(boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1073:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1075:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::dim(boolean)':

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:95:29: error: 'class TwoWire' has no member named 'setClock'

  #define SETWIRECLOCK wire->setClock(WIRECLK)    ///< Set before I2C transfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:122:4: note: in expansion of macro 'SETWIRECLOCK'

    SETWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1096:3: note: in expansion of macro 'TRANSACTION_START'

   TRANSACTION_START

   ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:96:29: error: 'class TwoWire' has no member named 'setClock'

  #define RESWIRECLOCK wire->setClock(restoreClk) ///< Restore after I2C xfer

                             ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:131:4: note: in expansion of macro 'RESWIRECLOCK'

    RESWIRECLOCK;            \

    ^

C:\Users\Richard W Bruner\Documents\Arduino\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:1099:3: note: in expansion of macro 'TRANSACTION_END'

   TRANSACTION_END

   ^

exit status 1
Error compiling for board Arduino Nano.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

somewhereinusa
 
Posts: 37
Joined: Thu Nov 21, 2013 11:42 am

Re: Adafruit_SSD1306 library

by mac160th on Tue Jan 01, 2019 1:26 am

I am having a similar error when compiling. Have you found a solution?
Code: Select all | TOGGLE FULL SIZE
/home/mac160th/sketchbook/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp: In constructor ‘Adafruit_SSD1306::Adafruit_SSD1306(uint8_t, uint8_t, TwoWire*, int8_t, uint32_t, uint32_t)’:
/home/mac160th/sketchbook/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:170:3: error: class ‘Adafruit_SSD1306’ does not have any field named ‘wireClk’
   wireClk(clkDuring), restoreClk(clkAfter) {
   ^
/home/mac160th/sketchbook/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp:170:23: error: class ‘Adafruit_SSD1306’ does not have any field named ‘restoreClk’
   wireClk(clkDuring), restoreClk(clkAfter) {
                       ^

mac160th
 
Posts: 1
Joined: Tue Jan 01, 2019 1:23 am

Re: Adafruit_SSD1306 library

by franklin97355 on Tue Jan 01, 2019 2:11 am

Not sure what is going on. I compiled all 4 of the examples without errors. Make sure you have the latest versions of the libraries installed and you might try deleting the arduino15 folder if nothing else works.

franklin97355
 
Posts: 20246
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit_SSD1306 library

by somewhereinusa on Wed Jan 02, 2019 1:17 am

I finally got it to work. Uninstalled the arduino IDE then erased the Arduino15 folder then installed the latest Arduino IDE. Used library manager to install the correct library.

somewhereinusa
 
Posts: 37
Joined: Thu Nov 21, 2013 11:42 am

Re: Adafruit_SSD1306 library

by AbuSaldzi on Tue Feb 19, 2019 7:18 am

I have same issue here, I'm using ArduinoDroid and when I try to compile sample from library Adafruit_ssd1306 comes with error : class 'Adafruit_ssd1306' does not have any field named wireClk.
I add libraries from libraries manager.
I can't find out folder Arduino15 in my Android device.
So please guide me through right direction.
I'm newbie in arduino programming.

AbuSaldzi
 
Posts: 1
Joined: Tue Feb 19, 2019 7:07 am

Re: Adafruit_SSD1306 library

by tcbquick on Mon Apr 15, 2019 12:02 pm

I am also using arduinodroid getting same results WireClk error.
It works fine compiling on windows10.

tcbquick
 
Posts: 2
Joined: Wed Mar 14, 2018 7:02 pm

Please be positive and constructive with your questions and comments.