Joy-it COM-OLED2.42 Скачать руководство пользователя страница 2

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

2. SETUP OF THE DISPLAY INTERFACE

 

The display can be controlled in 4 different ways, via I2C, SPI, 8

-

bit paral-

lel 6800 interface and 8

-

bit parallel 8080 interface.

 

 

The display is delivered pre

-

configured for control via SPI. If you want to 

use one of the other control methods, you have to re

-

solder the resistors 

BS1 and BS2 on the back of the board.

 

 

In the table, you can see how the resistors must be set for the respective 

mode.

 

 

6800

-

parallel

 

8080

-

parallel

 

I2C

 

SPI

 

BS1

 

0

 

1

 

1

 

0

 

BS2

 

1

 

1

 

0

 

0

 

3. USE WITH AN ARDUINO

 

As the display works with a 3V logic level and most Arduinos with 5V, we 

use an Arduino Pro Mini 3.3V in this example.

 

If you want to use  an Arduino with a 5V logic level, such as an  Arduino 

Uno, you have to reduce all data lines leading from the Arduino to the dis-

play from 5V to 3.3V with a logic level converter.

 

First you need to install the required library in your Arduino IDE. 

 

 

To do this, go to 

Tools 

-

> Manage Libraries... 

Search for 

u8g2 

and install 

the library

 U8g2 by oliver

 

Содержание COM-OLED2.42

Страница 1: ...ED2 42 1 GENERAL INFORMATION Dear customer thank you very much for choosing our product In following we will introduce you to what to observe while starting up and using this product Should you encoun...

Страница 2: ...see how the resistors must be set for the respective mode 6800 parallel 8080 parallel I2C SPI BS1 0 1 1 0 BS2 1 1 0 0 3 USE WITH AN ARDUINO As the display works with a 3V logic level and most Arduino...

Страница 3: ...www joy it net Pascalstr 8 47506 Neukirchen Vluyn SPI Interface Wiring Display Pin 1 2 4 7 8 15 16 Arduino Pro Mini Pin GND 3 3V VCC 9 13 11 10 8...

Страница 4: ...code sample of the library To do this click on File Examples U8g2 u8x8 GraphicTest Now insert the following constructor for the display into the programme as shown in the picture below U8X8_SSD1309_1...

Страница 5: ...www joy it net Pascalstr 8 47506 Neukirchen Vluyn I2C Interface Wiring Display Pin 1 2 4 7 8 9 16 Arduino Pro Mini Pin GND 3 3V VCC GND A5 A4 A4 9...

Страница 6: ...Test code sample of the library To do this click on File Examples U8g2 u8x8 GraphicTest Now insert the following constructor for the display into the programme as shown in the picture below U8X8_SSD13...

Страница 7: ...ww joy it net Pascalstr 8 47506 Neukirchen Vluyn 8 bit Parallel 6800 Interface Wiring Display Pin 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 Arduino Pro Mini Pin GND 3 3V VCC 9 GND 7 13 11 2 3 4 5 6 A3 10 8...

Страница 8: ...To do this click on File Examples U8g2 u8x8 GraphicTest Now insert the following constructor for the display into the programme as shown in the picture below U8X8_SSD1309_128X64_NONAME0_6800 u8x8 13...

Страница 9: ...www joy it net Pascalstr 8 47506 Neukirchen Vluyn 8 bit Parallel 8080 Interface Wiring Display Pin 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 Arduino Pro GND 3 3V 9 7 3 3V 13 11 2 3 4 5 6 A3 10 8...

Страница 10: ...SD1309_128X64_NONAME0_8080 u8x8 13 11 2 3 4 5 6 A3 7 10 9 8 Now open the GraphicTest code sample of the library To do this click on File Examples U8g2 u8x8 GraphicTest Now insert the following constru...

Страница 11: ...must give the user in this case pi permission to access the required hardware If you are not using the user pi change the user at the end of the command accordingly sudo H pip3 install upgrade luma o...

Страница 12: ...terface Wiring Display Pin 1 2 4 7 8 15 16 Raspberry Pin GND 5V Pin 18 Pin 23 Pin 19 Pin 24 Pin 22 cd luma examples examples sudo python3 demo py i spi After you have connected the display you can exe...

Страница 13: ...I2C Interface Wiring Display Pin 1 2 4 7 8 9 16 Raspberry Pin GND 5V GND Pin 5 Pin 3 Pin 3 3 3V cd luma examples examples sudo python3 demo py After you have connected the display you can execute a s...

Страница 14: ...pliances with no external dimensions greater than 25 cm can be disposed of in normal household quantities independently of the pur chase of a new appliance Possibility of return at our company locatio...

Отзывы: