I'm trying out an OLED 128x64 1.3" Display example using AdafruitGFX, named sh1106_128x64_i2c.ino . What appears to be missing is a file named Adafruit_SH1106.h.
Whe would I have to expect this file being located in the file system, given I can find its contents in the Internet?
There is no reason to assume that the AdafruitGFX library has that file.
Adafruit has very comprehensive tutorials on how to use their displays, including download links. I've never had any trouble following those instructions, and recommend them to you.
OK. I understand. So I also installed Adafruit SH110X using Library Manager. The include file is still not being found. Where are all these files going in the filesystem? I can't find them in ~/Library/Arduino15/libraries
/*********************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x64 size display using I2C to communicate
3 pins are required to interface (2 I2C and one reset)
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, check license.txt for more information
All text above, and the splash screen must be included in any redistribution
*********************************************************************/
/*********************************************************************
I change the adafruit SSD1306 to SH1106
SH1106 driver don't provide several functions such as scroll commands.
*********************************************************************/
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SH1106.h>
Error message:
Alternatives for Adafruit_SH1106.h: []
sh1106_128x64_i2c:29:10: fatal error: Adafruit_SH1106.h: No such file or directory
ResolveLibrary(Adafruit_SH1106.h)
#include <Adafruit_SH1106.h> -> candidates: []
OK, First thing I find is that the include file is named Adafruit_SH110X.h.
And the example SSH1106_128x64_i2c_QTPY.ino works out of the box. No more display glitches.
Now I will have to transform the library to STM32CubeIDE and STM32F103C8T6.