Cannot load library

Hi all, this is probably a really easy one for you guys to fix for me, but it's had me banging my head

I have an OLED display I want to use that requires the AT89X52.h library. However when I try to find it in include libraries, a search gets no hits. I went onto the web, and there are no AT89X52.h zip files to be found, but I found the raw file, and using notepad++ I made an AT89X52 folder in the library folder, and pasted the file in there.

However it does not show up in the include libraries tool, and despite it being in the library, compiling says 'no such file or library'.

How can I get the IDE to recognise the file?

Cheers

Les

which OLED ? why do you think it requires the AT89X52.h library?

where?

what arduino do you use?

This is the OLED

and the sketch that calls it out is the one in the example listed on the page - I just want to get the example working to check it all out first

The file was on github

I am trying to use either a AT328 Nano, or Uno if the memory is not enough, but have an ESP32 to try it with too

Preference is Nano

Thanks for helping

Les

You have not downloaded the library code, only the .h file, this file calls other files you do not have.
You should be using this page
Master code

However this code is very old and the GitHub has been archived so there is no support. It is not even likely to work.

See how to download libraries using this link

Thanks, so is there a new code to replace the AT89X52 version? I have used u8g2 code and SSD1306 for other OLEDs, can I substitute these in?

Sorry, pressed reply before finishing my answer

My IDE installation no longer shows the manage libraries screen that the tutorial link shows - it used to, but now it is replaced by a rather less helpful one - see screenshot

Cheers

Les

I see you are using IDE 2.0,
Sorry but I know nothing about that.

I will move the post to problems about IDE 2.0

No idea I have never come across that one before. What happens if you leave it out of your code?

Hi @Lesthegringo

Please provide a detailed description of what is less helpful about the Arduino IDE 2.x Library Manager. That information will allow me to assist you.

It now gets further down and stops at the library called 'intrins.h' ... looks like I've uncovered an old issue.

I'm just going to go ahead and try some of the other libraries with some simple sketches to see if any work

As you can see from the screenshot that I posted earlier, you don't get the old library selection screen that used to appear. When I entered AT89X52 into the search with 'all' selected, it came up with nothing, but with the old type from the previous version, you could look through other stuff. this one just shows nothing (left hand side of the screen)

I used to use the old library manager with good results, it was easy and intuitive, but this new version does not seem to be so comprehensive and user friendly

Cheers

Les

That is because there is no library in the Library Manager index with the AT89X52 keyword.

This is false. You will also get an empty listing if you search for AT89X52 in the Arduino IDE 1.x Library Manager:

Please provide specific examples of what you find to be less comprehensive and user unfriendly.

Feedback is very much welcome, but details are needed in order for it to be actionable.

The display uses SPI and an SH1122 controller. I think you need an SH1122 library. The "U8g2 by oliver" supports that controller chip.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.