www.joy
-
it.net
Pascalstr. 8 47506 Neukirchen
-
Vluyn
3.2.2
Library
We use the
for the Arduino, which was published by
. 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