I am getting an error while trying to set up the U8g2 library I am just trying to set up the U8g2 library to use an OLED. I read through the documentation and tried copying and pasting the code block example for the constructor, but switched out their information for my OLED's information. After trying to verify, the IDE returned this error:
exit status 1
expected ')' before ',' token
#include &lt;SPI.h&gt;
#include &lt;U8g2lib.h&gt;

//Constructor
U8G2_SSD1306_128X64_NONAME_1_SW_I2C(U8G2_R0,A5,A4);```

I saw a similar post about this problem from four years ago, but the only suggestion on there was to capitalize the &quot;A&quot; in the analog pins. I tried this and nothing changed. Any help would be much appreciated!
I figured out what I was doing wrong. I was copying the name from the Constructor Reference and immediately inputting the arguments in parentheses. I needed to put u8g2 after the constructor name and then put the arguments. Thanks!
The corrected code is as follows:
#include &lt;Arduino.h&gt;
#include &lt;SPI.h&gt;
#include &lt;U8g2lib.h&gt;

//Constructor
U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0,A5,A4);