2.42 inch OLED display module SPI test
1.Tools required for testing: MINI USB Cable?Arduino Nano?Computer?Dupont Lines
2.The test connection is as follows:2.42’OLED Arduino Nano
- MOSI------------------------------9
- CLK I-----------------------------10
- DCI-------------------------------11
- CSI--------------------------------12
- RESET ----------------------------13
- VCC--------------------------------5V
- GND-------------------------------GND
3.Preparation before the test:Connect Arduino Nano to the computer and download the following program for Arduino Nano.
4.Test process: Wire as required, power on, and observe the content displayed on the OLED screen.
At this time, if you can observe that the screen is lit on the full screen as shown in the figure below, and there are no dead or dark spots, then the test passes.
5.I2C Communication test method:
(1)Move the resistor on R4 to R3, and at the same time solder a 0 ohm resistor on R5.
(2)Gnd = gnd arduino
Vcc = + 3.3v arduino
SCL =SCL arduino
SDA= SDA arduino
RES=reset arduino
- Choose from the ARDUINO U8GLIB library.
- U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI.