background image

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

4.3 Usage of the library

 

You  can  compile  the  code  example  from  the  library  with  the  following 

command.

 

./compile.sh

 

You  can  press 

to  confirm  starting  the  sample  code  immediately  after 

compiling, or run the 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 you like the SPI interface to be enabled?

“ 

with 

Yes

.

 

Finish the activation of the SPI interface 

OK

“ 

and close the configurati-

on with 

Finish

.

 

You have now successfully activated the SPI interface. Please reboot your 

Raspberry Pi.

 

cd ~/u8g2

-

rpi

-

demo/ 

 

sudo reboot

 

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

Отзывы: