DLR2416 (ORSAM)

DLx2416


Připojení k Arduinu

Pin DLR2416Název pinu DLR2416Pin Arduino
1CE1GND
2CE2GND
3CLRD12
4CUED11
5CUD10
6WRD9
7A1D8
8A0D7
9Vdd5V
10GNDGND
11D0A1
12D1A0
13D2D2
14D3D3
15D6D6
16D5D5
17D4D4
18BLD13

Zdrojový kód pro Arduino

#include "DL2416T.h"

Display display(A1, A0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
char msg[] = "      *** DLR2416 DEMO *** MORE DISPLAYS ON CTVRTKY.INFO/SBIRKA-DISPLEJU-LED                     ";

void setup() {
}

void loop() {
  for (byte i = 0; i < (sizeof(msg) / sizeof(char)); i++) {
    display.setLetter(msg[i + 3], 0);
    display.setLetter(msg[i + 2], 1);
    display.setLetter(msg[i + 1], 2);
    display.setLetter(msg[i], 3);
    if (i == (sizeof(msg) / sizeof(char)) - 1) {
      i = 0;
      display.clear();
    }
    delay(300);
  }
}

Demo video


Leave a Reply