Beginner trying to display something on OLED. Getting these warnings and cannot display even a example from a library of SSD 1325.
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1325.h>
Adafruit_SSD1325 display(13, 13, 8, 9, 10);
void setup() {
// put your setup code here, to run once:
display.begin();
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("Hello World");
display.display();
}
void loop() {
// put your main code here, to run repeatedly:
}
Here are the warnings:
In file included from C:\Users\Tommy\AppData\Local\Temp\.arduinoIDE-unsaved2023814-14180-nlnuwf.3frqj\sketch_sep14a\sketch_sep14a.ino:5:
c:\Users\Tommy\Documents\Arduino\libraries\Adafruit_SSD1325/Adafruit_SSD1325.h:12: warning: "_BV" redefined
12 | #define _BV(b) (1 << (b))
|
In file included from C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/wiring.h:39,
from C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/WProgram.h:46,
from C:\Users\Tommy\AppData\Local\Temp\arduino\sketches\988F7EE659F7BC5CF65B291836682BF8\pch\Arduino.h:6:
C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/core_pins.h:47: note: this is the location of the previous definition
47 | #define _BV(n) (1<<(n))
|
In file included from c:\Users\Tommy\Documents\Arduino\libraries\Adafruit_SSD1325\Adafruit_SSD1325.cpp:42:
c:\Users\Tommy\Documents\Arduino\libraries\Adafruit_SSD1325\Adafruit_SSD1325.h:12: warning: "_BV" redefined
12 | #define _BV(b) (1 << (b))
|
In file included from C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/wiring.h:39,
from C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/WProgram.h:46,
from C:\Users\Tommy\AppData\Local\Temp\arduino\sketches\988F7EE659F7BC5CF65B291836682BF8/pch/Arduino.h:6,
from c:\Users\Tommy\Documents\Arduino\libraries\Adafruit_GFX_Library/Adafruit_GFX.h:5,
from c:\Users\Tommy\Documents\Arduino\libraries\Adafruit_SSD1325\Adafruit_SSD1325.cpp:41:
C:\Users\Tommy\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3/core_pins.h:47: note: this is the location of the previous definition
47 | #define _BV(n) (1<<(n))
|