background image

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

 

3.1.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 

 

libra

 

ry, you can find examples under 

File 

→ 

Examples 

→ 

U8g2  Examp

 

les

.

 

 

 

 

 

3.1.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  161  before  you  can  execute  it  using  the  Upload  button. 

 

 

This  is  because  line  161  contains  the  declaration  of  the  display

 

 

using SPI. 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.

 

 

 

 

 

3.2 

 

Parallel (8080)

 

 

 

3.2.1

 

Connection

 

Summary of Contents for 4250236821993

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: