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

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

4. USE WITH THE RASPBERRY PI

 

First,  we  install  the  library  and  download  the  sample  files,  this  is  done 

with the following commands:

 

To make using the display with the Raspberry Pi particularly easy, we use 

the luma.oled library.

 

You can install the dependencies required for installation with the follo-

wing commands:

 

There you can now activate 

SPI 

and 

I2C 

under 

3  Interface  Options 

so 

that you can use both interfaces.

 

Now enter the following command in the terminal:

 

Next, you 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.oled

 

sudo git clone https://github.com/rm

-

hull/luma.examples.git

 

sudo raspi

-

config

 

sudo usermod 

-

-

G spi,gpio,i2c pi

 

sudo apt

-

get update

 

sudo  apt

-

get  install  git  python3  python3

-

dev  python3

-

pip 

python3

-

pip  python3

-

pil  libjpeg

-

dev  zlib1g

-

dev  libfreetype6

-

dev 

liblcms2

-

dev  libopenjp2

-

7  libtiff5  build

-

essential  libsdl

-

dev 

libportmidi

-

dev  libsdl

-

ttf2.0

-

dev  libsdl

-

mixer1.2

-

dev  libsdl

-

image1.2

-

dev

 

sudo reboot

 

Then restart your Raspberry Pi with the following command:

 

After the reboot, enter following command into the terminal:

 

Содержание 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...

Отзывы: