• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Library Functions Resource

Q&A Forum › Category: Arduino › Library Functions Resource
0 Vote Up Vote Down
Michal Smialowski asked 3 years ago

I am having difficulty finding good explanations for different libraries ( example Adafruit_SSD1306.h) especially if they are not in the Arduino reference. When I work through the code examples, there is often different function/methods that I cannot find good explanations for: example ” Adafruit_SSD1306 display(screen_width, screen_height, &Wire, oled_rst);”  Why the “&wire” parameter is needed.

Can someone please point where to start looking for a good reference… haven’t had much luck with Google.

Does Github have a reference section somewhere that I haven’t found.

Thanks

Mike

Talayoko Lake BC Canada

Question Tags: Library Reference
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Mike.
I don’t think there is a reference for what you want.
The &wire parameter is needed because that’s how the Adafruit_SSD1306 constructor works.
You can take a look at the Adafruit_SSD1306.h file and find all the constructors and functions: https://github.com/adafruit/Adafruit_SSD1306/blob/master/Adafruit_SSD1306.h
For that particular case, look at line 127.
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Michal Smialowski answered 3 years ago

Thanks for your help Sara, much appreciated.
Mike

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.