ESP32 with SSD1351

Hellodunio!

Now it’s time to mess with ESP32, okay okay jokes on me I know it’s not an Arduino but works with Arduino IDE so wut?

I liked this tiny device a lot and I really consider a few projects with it to rock this website’s contents a lot. So you’re guessing what is SSD1351. Well, it’s the OLED display’s driver. I found this one from the website I always do my shoppings, so I’m able to keep this blog with this driver hehehe.

First things first. Let’s do wiring of display with ESP32.

  • Behind of Display

As it’s always :

  • Red is for VCC – have you ever suprised about it? cut the red wire!!
  • and Black wire for GND what a coincidende wooah!
  • Blue for DIN
  • Yellow for CLK
  • Orange for CS
  • Green got DC
  • and White gets RST

I know ESP32’s picture is kind of nasty 🙁 I’ll reshot later, right now I’m in a cofee shop while typing this post, sorry folks.

  • Red goes to 5V pin on the top left
  • Green pin 16
  • Orange pin 17
  • White pin 5
  • Yellow pin 18
  • Blue pin 23
  • Black GND on the bottom right

Trust me, it’ll work!

AS a result I’m it’s Lord! YAAAY!

So we got wiring, now we have to install some libraries for Arduino IDE, then we can run example codes and reshape them for our goals. Grab your terminal CTRL+ALT+T (hope you’re a Linux user like me)

cd ~/Arduino/libraries
git clone https://github.com/sumotoy/SSD_13XX.git

You’ve not finished yet! now navigate to _settings folder under SSD_13XX library and open SSD_13XX_settings.h with your favorite text editor to edit this part:

Here you choose the display file for your display.
You must select just ONE and comment the others.
Default: #include "../_display/SSD_1331_96x64.h"
(uncomment just one below...)
----------------------------------------------------------------------------------*/
	//#include "../_display/SSD_1331_96x64.h"
	//#include "../_display/SSD_1331_REDPCB.h"
	//#include "../_display/SSD_1332_96x64.h"
	#include "../_display/SSD_1351_128x128.h"
/*--------------------------------------------------------------------------------

I’ve uncommented 128×128 header due to my display’s pixel resolution is 128×128 pixels. If you’ve another display with SSD1351 driver uncomment that one.

For the name of grand and might finale, you’ve got to run sample code from your Arduino IDE 🙂 Here is a sample project, enjoy!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *