Adafruit_SSD1306 driver questions

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
amoonlost
 
Posts: 2
Joined: Thu Apr 26, 2012 11:07 pm

Adafruit_SSD1306 driver questions

Post by amoonlost »

i cant get this sketch to veriify
Please help me.
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::begin(uint8_t)':
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:150: error: 'digitalPinToPort' was not declared in this scope
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:150: error: 'portOutputRegister' was not declared in this scope
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:151: error: 'digitalPinToBitMask' was not declared in this scope
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_command(uint8_t)':
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:280: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:281: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::ssd1306_data(uint8_t)':
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:305: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:306: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp: In member function 'void Adafruit_SSD1306::display()':
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:349: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:351: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:362: error: 'class TwoWire' has no member named 'write'
E:\work\非工作性研究\我的機器人\參考資料\arduino\arduino-0023\libraries\Adafruit_SSD1306\Adafruit_SSD1306.cpp:364: error: 'class TwoWire' has no member named 'write'

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Adafruit_SSD1306 driver questions

Post by pburgess »

The sketch will compile using the Arduino 1.0 software. Unless you have a specific need for still running version 0023, this might be a good time to upgrade.

amoonlost
 
Posts: 2
Joined: Thu Apr 26, 2012 11:07 pm

Re: Adafruit_SSD1306 driver questions

Post by amoonlost »

pburgess wrote:The sketch will compile using the Arduino 1.0 software. Unless you have a specific need for still running version 0023, this might be a good time to upgrade.
Thank you! Thank you!

andywatson
 
Posts: 28
Joined: Wed Feb 16, 2011 12:40 am

Re: Adafruit_SSD1306 driver questions

Post by andywatson »

I'm having the same error issue. I've been using v022, so when I saw this post I downloaded and upgraded to v1.0.1, and I still get the exact same error. Do I need to update the "Wire" library as well?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Adafruit_SSD1306 driver questions

Post by pburgess »

Hi Andy,

No need to update the Wire library. Whatever's included in the Arduino current distribution, use that (if you have a 'vintage' version in your personal sketchbook/libraries folder, remove it...but keep the stock version in the application's library folder).

In addition to the SSD1306 library, you'll also need to install the Adafruit GFX library if you haven't already done so. Should compile OK after that. I just tested again here with 1.0.1 to be sure.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”