missing sub program

Hello

I have mega 2560 by compiling I get the the fault that i am missing SSD1306Ascii.h

I have investigated on the internet and it seems here about a subfile of an oled screen,

I would like to have someone how can guide me true the software and how and where to install the file

and make my project work.

Thanks in advance

meester:
I get the the fault that i am missing SSD1306Ascii.h

Paraphrasing error messages is extremely unhelpful. When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Since you didn’t post the exact error message I’m going to have to guess you are talking about a “No such file or directory” error.

When you see a “No such file or directory” error it almost always means you need to install the library that contains the missing file.

Often the code you’re compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

In other cases the author of the code will not have been so kind and you’ll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE’s Library Manager:

  • Sketch > Include Library > Manage Libraries…
  • In the “Filter your search…” box, type some keywords you have gleaned from the missing file name.
  • Scroll through the results for the right library. Click on it.
  • Click “Install”.
  • Wait for installation to finish.
  • Click “Close”.
  • Try compiling your code again.

If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add “arduino” as an additional search keyword. I will usually prefer results on github.com since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you’ll need to do some evaluation to determine which seems the most appropriate, then try it out. After downloading the library you found you’ll need to install it. This requires a different process than the Library Manager installation. You will find instructions here:

Hello

Thanks a lot, wonderfull advice I could rectify in one try, the file was announced in the Arduino bibliotheek

But now I have :

expected primary-expression defore "if" as a failure when I am compiling.

can you put me on the track to solf this.

Thanks in advance

expected primary-expression defore "if"

Cut-and-paste not working :o

I'm going to guess that there is a primary expression missing, before an "if" in the code you didn't post.