arduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino
Differences
This shows you the differences between two versions of the page.
arduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino [2018/02/24 02:01] – created mithat | arduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino [2018/02/24 02:11] (current) – mithat | ||
---|---|---|---|
Line 11: | Line 11: | ||
* Mithat Konar | * Mithat Konar | ||
*/ | */ | ||
+ | |||
#include < | #include < | ||
Line 16: | Line 17: | ||
/* | /* | ||
Pin assignments: | Pin assignments: | ||
- | RST: 8 | + | RS [CE/CS/SCE]: 10 |
- | CE/CS/SCE: 10 | + | R/W [DIN/ |
- | DC/" | + | E [CLK/ |
- | DIN/ | + | PSB: ground |
- | | + | |
- | VCC: 5V (part is allegedly 5V tolerant) | + | GND/VSS: ground |
- | GND: ground | + | |
*/ | */ | ||
const unsigned int CLOCK_PIN = 13, | const unsigned int CLOCK_PIN = 13, | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
- | U8G2_ST7920_128X64_1_HW_SPI disp = U8G2_ST7920_128X64_1_HW_SPI(U8G2_R0, | + | U8G2_ST7920_128X64_1_HW_SPI disp = U8G2_ST7920_128X64_1_HW_SPI(U8G2_R0, |
unsigned int counter = 80; | unsigned int counter = 80; | ||
Line 59: | Line 57: | ||
delay(500); | delay(500); | ||
} | } | ||
- | |||
</ | </ |
arduino/displays_for_classic_arduinos/display_st7920_126x64_u8g2.ino.1519437695.txt.gz · Last modified: 2018/02/24 02:01 by mithat