background image

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

 

3.2.2

 

Library

 

 

We use the 

U8g2  library

 for the Arduino, which was published by 

 

oliver

 You can find this library in your Arduino IDE under 

Tools 

→ 

 

Manage libraries ... 

 

If  you  have  successfully  downloaded  the 

 

library, you can find examples under 

File 

→ 

Examples 

→ 

  

 

U8g2 Examples

.

 

 

 

 

 

3.2.3

 

Code Example

 

 

Here we will explain 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 

 

line  160  before  you  can  execute  it  using  the  Upload  button. 

 

 

This  is  because  line  160  contains  the  declaration  of  the  display 

 

 

using 8080. Of course, you can use the other examples in the same

 

 

way  by  uncommenting  the  same  line  in  the  other  code 

 

 

examples.

 

 

 

Note that under 

Tools

Board 

and 

Port 

must be correctly selected.

 

LCD

 

Arduino

 

GND

 

GND

 

VCC

 

5V

 

RS

 

A3

 

R/W

 

GND

 

E

 

A4

 

DB0

 

Pin 8

 

DB1

 

Pin 9

 

DB2

 

Pin 10

 

DB3

 

Pin 11

 

DB4

 

Pin 4

 

DB5

 

Pin 5

 

DB6

 

Pin 6

 

DB7

 

Pin 7

 

PSB

 

5V

 

BLA

 

5V

 

BLK

 

GND

 

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

Отзывы: