DL1814
Připojení k Arduinu
Pin DL 1814 | Název pinu DL 1814 | Pin Arduino |
---|
1 | D0 | 3 |
2 | D1 | 4 |
3 | D2 | 5 |
4 | D3 | 6 |
5 | D4 | 7 |
6 | D5 | 8 |
7 | D6 | 9 |
8 | GND | GND |
9 | A0 | 12 |
10 | A1 | 13 |
11 | A2 | 11 |
12 | WR | 2 |
13 | VCC | 5V |
14 | BL | 5V |
15 -25 | – | – |
26 | CE | GND |
Zdrojový kód pro Arduino
// DL1814 library by TiNredmc at https://github.com/TiNredmc/DL1814betalib
#include <DL1814.h>
int WR = 2;
int Addr0 = 12;
int Addr1 = 13;
int Addr2 = 11;
int D0 = 3;
int D1 = 4;
int D2 = 5;
int D3 = 6;
int D4 = 7;
int D5 = 8;
int D6 = 9;
DL1814 dl1814(WR, Addr0, Addr1, Addr2, D0, D1, D2, D3, D4, D5, D6);
void setup() {
dl1814.clear();
}
void loop() {
String str = " DL1814 DEMO ";
dl1814.writeStringScrolling(str, 300);
dl1814.clear();
}
Demo video