Hello,
I ordered an ESP32 board with a built-in OLED.
It hasn't arrived yet. Does anyone know this board?
https://de.aliexpress.com/item/1005007342383107.html?spm=a2g0o.order_list.order_list_main.5.5bc45c5fWPCc53&gatewayAdapt=glo2deu
Can it be controlled with the Arduino software?
Does anyone have a sample code?
Thank you very much.
Hans
Hi @Holzwurm56.
Yes.
One is suggested in one of the reviews on the product page:
go to 'library manager' and install ''u8g2" (see picture 2). After that, go to 'board' and select 'esp32c3 dev module' (picture 3). Next, go to 'examples' and select u8g2 -> u8x8 -> 'helloworld' (picture 4). Finally, change the code marked with red dots on the left like in the picture. (picture 5).
From that information, it looks like the the display is an SSD1306. This is a popular display in the Arduino world so you will find many example sketches if you do a search for arduino ssd1306. The "U8g2" library mentioned in the product review contains multiple other example sketches. There are also several other alternative libraries for the SSD1306, each of which comes with example sketches demonstrating the use of that library.
The Arduino framework generally makes sketches usable on multiple different types of boards without modification. So you don't need to worry about finding sketches that are for your specific board. The most important thing is to make sure the sketch is for the SSD1306, since a sketch for a different type of display won't work with the SSD1306. Just look for sketches that are for the SSD1306 and they will probably work with your board. At most, you will want to consider the fact that your board uses the ESP32-C3 microcontroller, and whether a given display library is compatible with that microcontroller. You don't need to worry about compatibility with the specific board though because there is nothing special about that board in this regard.
I think @Wawa might have mentioned using these?
Yes.
To do what? I think most Arduino example code should work fine