How to Use a 1.3 Inch I2C OLED Display With Arduino
by timothyong16 in Circuits > Arduino
3509 Views, 0 Favorites, 0 Comments
How to Use a 1.3 Inch I2C OLED Display With Arduino
reference: https://www.instructables.com/Monochrome-096-i2c-O...
https://create.arduino.cc/projecthub/najad/interfa...
In this instructable, I'm going to teach you how to use your i2C with your Arduino. Also, teaching you how to display images on the display.
Supplies
You will need an Arduino board, four wires, and an OLED display.
Connecting Your Display
The OLED display should be connecting to the Arduino like the included picture.
Identifying What Kind of Your Display Is
The types of displays may affect the codes that are uploaded to. So after connecting the display to your Arduino, you might need to run a code. Which is included.
https://playground.arduino.cc/Main/I2cScanner/
If the display is connected and the codes are uploaded, open up serial monitor, it should show something like the picture.
Installing Libraries
The libraries that I use are
Testing Your Display
To test your display, there are testing files that can be reached by following the picture.
After opening, make sure you change the highlighted part to the result that the scanner scanned. In my case, is 0X3C.
Uploading Your Own Picture
Till this point, your OLED display should glow up and display the example file. If not, head back and check if you are following the right instructions.
So first find a picture that you would like to display to your OLED.
Next, head to https://diyusthad.com/image2cpp and follow the steps on the picture.
Then, copy the code and paste it into the part that writes " //Paste your bitmap here". Example file is also included.
https://create.arduino.cc/editor/timothyong16/2167...
Enjoy Your OLED Display!
If the tutorial does not work for you or isn't clear enough, the reference link might be easier to understand than mine. Or you can comment down below so I can solve your problem!