I'm using the official adafruit sh110x library from github.
When i copy from their examplecode to change library and display type, i get this;
In file included from C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:6:0:
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\splash.h:1:0: warning: "splash1_width" redefined
In file included from C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\ardugauge.ino:1:0:
C:\Users\RuMo\Documents\Arduino\libraries\Adafruit_SH110x-master/splash.h:2:0: note: this is the location of the previous definition
#define splash1_width 82
In file included from C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:6:0:
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\splash.h:2:0: warning: "splash1_height" redefined
In file included from C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\ardugauge.ino:1:0:
C:\Users\RuMo\Documents\Arduino\libraries\Adafruit_SH110x-master/splash.h:3:0: note: this is the location of the previous definition
#define splash1_height 64
splash.h:5:7: error: 'uint8_t' does not name a type
const uint8_t PROGMEM splash1_data[] = {
^~~~~~~
splash.h:129:7: error: 'uint8_t' does not name a type
const uint8_t PROGMEM splash2_data[] = {
^~~~~~~
In file included from C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:5:0:
Numbers24pt7b.h:89:7: error: 'GFXglyph' does not name a type
Numbers24pt7b.h:107:7: error: 'GFXfont' does not name a type
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void initDisplay()':
Pages:24:3: error: 'OLED' was not declared in this scope
Pages:24:14: error: 'SSD1306_SWITCHCAPVCC' was not declared in this scope
Pages:26:21: error: 'WHITE' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:26:21: note: suggested alternative: 'WDIE'
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void showSplash(const __FlashStringHelper*)':
Pages:33:3: error: 'OLED' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void showNumeric(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t)':
Pages:51:3: error: 'OLED' was not declared in this scope
Pages:54:17: error: 'Numbers24pt7b' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:54:17: note: suggested alternative: 'Numbers24pt7bBitmaps'
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void showBar(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t)':
Pages:69:3: error: 'OLED' was not declared in this scope
Pages:72:17: error: 'Numbers24pt7b' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:72:17: note: suggested alternative: 'Numbers24pt7bBitmaps'
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void show2Bar(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t)':
Pages:85:3: error: 'OLED' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void drawHalfBar(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, uint8_t)':
Pages:102:5: error: 'OLED' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void show4Numeric(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t)':
Pages:118:3: error: 'OLED' was not declared in this scope
Pages:119:34: error: 'SSD1306_WHITE' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:119:34: note: suggested alternative: 'SH110X_WHITE'
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void drawQuarter(const __FlashStringHelper*, int16_t, int16_t, int16_t, uint8_t, uint8_t)':
Pages:140:5: error: 'OLED' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void showFlags(const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool, const __FlashStringHelper*, bool)':
Pages:160:3: error: 'OLED' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void drawFlag(const __FlashStringHelper*, bool, uint8_t, uint8_t, uint8_t, uint8_t)':
Pages:182:5: error: 'OLED' was not declared in this scope
Pages:188:41: error: 'SSD1306_INVERSE' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:188:41: note: suggested alternative: 'SH110X_INVERSE'
Pages:192:41: error: 'SSD1306_WHITE' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:192:41: note: suggested alternative: 'SH110X_WHITE'
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino: In function 'void drawHBar(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
Pages:260:3: error: 'OLED' was not declared in this scope
Pages:260:32: error: 'SSD1306_WHITE' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:260:32: note: suggested alternative: 'SH110X_WHITE'
Pages:268:44: error: 'SSD1306_BLACK' was not declared in this scope
C:\Users\RuMo\Desktop\Tuning\Speeduino\ardugauge\1111 NYT FORSØG\Ændret\speeduino-ardugauge-main\software\ardugauge\Pages.ino:268:44: note: suggested alternative: 'SH110X_BLACK'
Multiple libraries were found for "splash.h"
Used: C:\Users\RuMo\Documents\Arduino\libraries\Adafruit_SH110x-master
Not used: C:\Users\RuMo\Documents\Arduino\libraries\Adafruit_SSD1306-2.5.3
Not used: C:\Users\RuMo\Documents\Arduino\libraries\Adafruit_SSD1306
exit status 1
'uint8_t' does not name a type
What i tried was in Pages-sketch, i changed
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 OLED(128, 64, &Wire, -1);
to this
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // QT-PY / XIAO
Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define i2c_Address 0x3c //initialize with the I2C addr 0x3C Typically eBay OLED's
#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2