background image

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

4.2 Library

 

We use the library 

u8g2

-

rpi

-

demo

 

from 

ribasco

which is released under 

the 

Apache License 2.0

.

 

First, download 

git

 for this purpose. To do this, enter the following com-

mands:

 

git clone https://github.com/ribasco/u8g2

-

rpi

-

demo.git

 

Now  enter  the  following  commands  into  the  console  to  download  and 

install all the necessary files.

 

Some steps in the installation might take some time.

 

cd u8g2

-

rpi

-

demo/ 

 

sudo apt

-

get install libcurl4

-

openssl

-

dev

 

git clone https://github.com/Kitware/CMake.git 

 

cd CMake 

 

./bootstrap 

--

system

-

curl 

 

make 

 

sudo make install 

 

sudo apt

-

get update

 

sudo apt

-

get install git

 

Then run the following command to download the library.

 

cd .. 

 

Select there under 

3 Interface Options 

→ 

P4 SPI

 

sudo raspi

-

config

 

Now  enable  serial  communication  by  calling  the  configuration  of  the 

Raspberry Pi with the following command.

 

Содержание 4250236821993

Страница 1: ...Controllable via SPI and parallel 1 GENERAL INFORMATION Dear customer Thank you for purchasing our product In the following we will show you which things should be noted during the use Should you enc...

Страница 2: ...www joy it net Pascalstr 8 47506 Neukirchen Vluyn 2 CONTRAST SETTING On the back of the display is a potentiometer with which you can adjust the contrast...

Страница 3: ...www joy it net Pascalstr 8 47506 Neukirchen Vluyn 3 USAGE WITH ARDUINO 3 1 SPI 3 1 1 Connection LCD Arduino GND GND VCC 5V RS A3 R W A2 E A4 PSB GND BLA 5V BLK GND...

Страница 4: ...xplain how to use a code example of the U8g2 library We will use the example GraphicsTest This example can be found under File Examples U8g2 full_buffer GraphicsTest In this code you need to uncomment...

Страница 5: ...l use the example GraphicsTest This example can be found under File Examples U8g2 full_buffer GraphicsTest In this code you need to uncomment line 160 before you can execute it using the Upload button...

Страница 6: ...t Pascalstr 8 47506 Neukirchen Vluyn 4 USAGE WITH THE RASPBERRY PI We use the LCD with the Raspberry Pi only via SPI 4 1 Connection LCD Arduino GND GND VCC 5V RS GPIO 8 R W GPIO 10 E GPIO 11 PSB GND B...

Страница 7: ...to download and install all the necessary files Some steps in the installation might take some time cd u8g2 rpi demo sudo apt get install libcurl4 openssl dev git clone https github com Kitware CMake...

Страница 8: ...he following command build arm debug bin u8g2demo You can also edit the sample code using the main cpp If you edit this file you must recompile it with the first command Agree with the question Would...

Страница 9: ...e of a new product in normal household quantities 1 Possibility of return at our company location during our opening hours Simac Electronics Handel GmbH Pascalstr 8 D 47506 Neukirchen Vluyn 2 Possibil...

Отзывы: