Skip to content

Commit 62e0d4a

Browse files
committed
Initial upload
1 parent e223edb commit 62e0d4a

File tree

12 files changed

+1000
-0
lines changed

12 files changed

+1000
-0
lines changed

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Deneyap 5x7 LED Matrix Arduino Library
2+
[FOR TURKISH VERSION](docs/README_tr.md) ![trflag](https://github.com/deneyapkart/deneyapkart-arduino-core/blob/master/docs/tr.png)
3+
4+
***** Add photo ****
5+
6+
This Arduino library for Deneyap 5x7 LED Matrix
7+
8+
## :mag_right:Specifications
9+
- `Product ID` **M34**, **mpv1.0**
10+
- `MCU` STM8S003F3
11+
- `I2C address` 0x0A, 0x4A
12+
13+
| Adress | |
14+
| :--- | :--- |
15+
| 0x0A | default address |
16+
| 0x4A | address when ADR1 pad is shorted |
17+
18+
## :closed_book:Documentation
19+
Deneyap 5x7 LED Matrix
20+
21+
How to install a Arduino Library -
22+
23+
## :pushpin:Deneyap 5x7 LED Matrix
24+
This Arduino library allows you to use Deneyap 5x7 LED Matrix module with I2C peripheral. You can use this library in your projects with any Arduino compatible board with I2C peripheral.
25+
26+
## :globe_with_meridians:Repository Contents
27+
- `/docs ` README_tr.md and product photos
28+
- `/examples ` Examples with .ino extension sketches
29+
- `/src ` Source files (.cpp .h)
30+
- `keywords.txt ` Keywords from this library that will be highlighted in the Arduino IDE
31+
- `library.properties ` General library properties for the Arduino package manager
32+
33+
## Version History
34+
1.0.0 - initial release
35+
36+
## :rocket:Hardware Connections
37+
- Deneyap 5x7 LED Matrix and Board can be connected with I2C cable
38+
- or 3V3, GND, SDA and SCL pins can be connected with jumper cables
39+
40+
|5x7 LED Matrix | Function | Board pins |
41+
|:--- | :--- | :---|
42+
|3.3V | Power |3.3V |
43+
|GND | Ground | GND |
44+
|SDA | I2C Data | SDA pin |
45+
|SCL | I2C Clock | SCL pin |
46+
|SWIM | Debug | no connection |
47+
|RES | Debug | no connection |
48+
|COL1 | 1.Column | any GPIO pin |
49+
|COL2 | 2.Column | any GPIO pin |
50+
|COL3 | 3.Column | any GPIO pin |
51+
|COL4 | 4.Column | any GPIO pin |
52+
|COL5 | 5.Column | any GPIO pin |
53+
|ROW1 | 1. Row | any GPIO pin |
54+
|ROW2 | 2. Row | any GPIO pin |
55+
|ROW3 | 3. Row | any GPIO pin |
56+
|ROW4 | 4. Row | any GPIO pin |
57+
|ROW5 | 5. Row | any GPIO pin |
58+
|ROW6 | 6. Row | any GPIO pin |
59+
|ROW7 | 7. Row | any GPIO pin |
60+
61+
## :bookmark_tabs:License Information
62+
Please review the [LICENSE](https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library/blob/master/LICENSE) file for license information.

docs/README_tr.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Deneyap 5x7 LED Matris Arduino Kütüphanesi
2+
3+
***** Fotoğraf eklenecek ****
4+
5+
Deneyap 5x7 LED Matris Modülü için Arduino kütüphanesidir.
6+
7+
## :mag_right:Özellikler
8+
- `Ürün ID` **M34**, **mpv1.0**
9+
- `MCU` STM8S003F3
10+
- `I2C Adres` 0x0A, 0x4A
11+
12+
| Adres | |
13+
| :--- | :--- |
14+
| 0x0A | varsayılan adres |
15+
| 0x4A | ADR1 kısa devre yapıldığındaki adres |
16+
17+
## :closed_book:Dokümanlar
18+
Deneyap 5x7 LED Matris Modülü
19+
20+
Arduino Kütüphanesi Nasıl İndirilir
21+
22+
## :pushpin:Deneyap 5x7 LED Matris
23+
Bu Arduino kütüphanesi Deneyap 5x7 LED Matris modülünün I2C çevre birimi ile kullanılmasını sağlar. Arduino ile uyumlu, I2C çevre birimine sahip herhangi bir geliştirme kartı ile bu kütüphaneyi projelerinizde kullanabilirsiniz.
24+
25+
## :globe_with_meridians:Repo İçeriği
26+
- `/docs` README_tr.md ve ürün fotoğrafları
27+
- `/examples` .ino uzantılı örnek uygulamalar
28+
- `/src` kütüphane için .cpp ve .h uzantılı dosyalar
29+
- `keywords.txt` Arduino IDE'de vurgulanacak anahtar kelimeler
30+
- `library.properties` Arduino yöneticisi için genel kütüphane özellikleri
31+
32+
## Sürüm Geçmişi
33+
1.0.0 - ilk sürüm
34+
35+
## :rocket:Donanım Bağlantıları
36+
- Deneyap 5x7 LED Matris ile kullanılan geliştirme kartı I2C kablosu ile bağlanabilir
37+
- veya jumper kablolar ile ile 3V3, GND, SDA ve SCL bağlantıları yapılabilir.
38+
39+
| 5x7 LED Matris | Fonksiyon| Kart pinleri |
40+
| :--- | :--- | :--- |
41+
| 3.3V | Güç | 3.3V |
42+
| GND | Toprak |GND |
43+
| SDA | I2C Data | SDA pini |
44+
| SCL | I2C Clock | SCL pini|
45+
|SWIM | Debug | bağlantı yok |
46+
|RES | Debug | bağlantı yok |
47+
|COL1 | 1. sütun | herhangi bir GPIO pini |
48+
|COL2 | 2. sütun | herhangi bir GPIO pini |
49+
|COL3 | 3. sütun | herhangi bir GPIO pini |
50+
|COL4 | 4. sütun | herhangi bir GPIO pini |
51+
|COL5 | 5. sütun | herhangi bir GPIO pini |
52+
|ROW1 | 1. satır | herhangi bir GPIO pini |
53+
|ROW2 | 2. satır | herhangi bir GPIO pini |
54+
|ROW3 | 3. satır | herhangi bir GPIO pini |
55+
|ROW4 | 4. satır | herhangi bir GPIO pini |
56+
|ROW5 | 5. satır | herhangi bir GPIO pini |
57+
|ROW6 | 6. satır | herhangi bir GPIO pini |
58+
|ROW7 | 7. satır | herhangi bir GPIO pini |
59+
60+
## :bookmark_tabs:Lisans Bilgisi
61+
Lisans bilgileri için [LICENSE](https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library/blob/master/LICENSE) dosyasını inceleyin.

examples/GulenYuz/GulenYuz.ino

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Gülen yüz örneği,
3+
*
4+
* Bu örnekte temel konfigürasyon ayarları yapılmaktadır.
5+
* 5x7 LED ekranında gülen yüz yazdırmaktadır.
6+
*
7+
* Bu algılayıcı I2C haberleşme protokolü ile çalışmaktadır.
8+
*
9+
* Bu örnek Deneyap 5x7 LED Matris için oluşturulmuştur
10+
* ------> www.....com <------ //docs
11+
* ------> https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library <------
12+
*
13+
*/
14+
#include <Deneyap_5x7LedEkran.h> // Deneyap_5x7LedEkran.h kütüphanesi eklendi
15+
16+
DotMatrix LEDMatris; // DotMatrix için Class tanımlaması
17+
18+
const byte gulenYuz[] = {0, 0, 0, 0, 0,
19+
0, 1, 0, 1, 0,
20+
0, 0, 0, 0, 0,
21+
0, 0, 1, 0, 0,
22+
1, 0, 0, 0, 1,
23+
0, 1, 1, 1, 0,
24+
0, 0, 0, 0, 0};
25+
26+
void setup() {
27+
Serial.begin(115200); // Seri haberleşme başlatıldı
28+
if (!LEDMatris.begin(0x0A)){ // begin(slaveAdress) fonksiyonu ile cihazların haberleşmesi başlatıldı
29+
delay(3000);
30+
Serial.println("I2C bağlantısı başarısız"); // I2C bağlantısı başarısız olursa seri terminale yazdırma
31+
while (1);
32+
}
33+
}
34+
35+
void loop() {
36+
LEDMatris.drawLedMatrix(gulenYuz);
37+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Hızlı random Led Yakma örneği,
3+
*
4+
* Bu örnekte temel konfigürasyon ayarları yapılmaktadır.
5+
* Random satır ve random sütun sayısı atması yapılmaktadır.
6+
* 5x7 LED ekranında atanan satır ve sütundaki LED'i yakmaktadır.
7+
*
8+
* Bu algılayıcı I2C haberleşme protokolü ile çalışmaktadır.
9+
*
10+
* Bu örnek Deneyap 5x7 LED Matris için oluşturulmuştur
11+
* ------> www.....com <------ //docs
12+
* ------> https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library <------
13+
*
14+
*/
15+
#include <Deneyap_5x7LedEkran.h> // Deneyap_5x7LedEkran.h kütüphanesi eklendi
16+
17+
DotMatrix LEDMatris; // DotMatrix için Class tanımlaması
18+
19+
void setup() {
20+
Serial.begin(115200); // Seri haberleşme başlatıldı
21+
if (!LEDMatris.begin(0x0A)) { // begin(slaveAdress) fonksiyonu ile cihazların haberleşmesi başlatıldı
22+
delay(3000);
23+
Serial.println("I2C bağlantısı başarısız "); // I2C bağlantısı başarısız olursa seri terminale yazdırma
24+
while (1);
25+
}
26+
}
27+
28+
void loop() {
29+
for (int i; i < 100; ++i) {
30+
int randNumberRow = random(1, 8); // 1'den 7 kadar Random satır sayısı ataması
31+
int randNumberCol = random(1, 6); // 1'den 5 kadar Random sütun sayısı ataması
32+
LEDMatris.pixelLed(randNumberRow, randNumberCol); // Random atanan satır ve sutun sayısındaki LED yanmaktadır.
33+
}
34+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Kayan Çizgi no I2C örneği,
3+
*
4+
* Bu örnekte satır ve sütun pinleri array olarak tanıtılmaktadır.
5+
* 5x7 LED ekranında çizgi kaymaktadır.
6+
*
7+
* Bu algılayıcı I2C haberleşme protokolü ile çalışmaktadır.
8+
* Bu örnek I2C haberleşme protokolü kullanılmadan yazılmıştır.
9+
*
10+
* Bu örnek Deneyap 5x7 LED Matris için oluşturulmuştur
11+
* ------> www.....com <------ //docs
12+
* ------> https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library <------
13+
*
14+
*/
15+
int satir[7] = {D0, D1, D4, D5, D6, D7, D9};
16+
int sutun[5] = {D12, D13, D14, D15, DAC2};
17+
18+
void setup() {
19+
for (int i = 0; i < 7; ++i) {
20+
pinMode(satir[i], OUTPUT);
21+
}
22+
for (int i = 0; i < 5; ++i) {
23+
pinMode(sutun[i], OUTPUT);
24+
}
25+
}
26+
27+
void loop() {
28+
for (int i = 0; i < 5; ++i) {
29+
digitalWrite(sutun[i], LOW);
30+
for (int j = 0; j < 7; ++j) {
31+
digitalWrite(satir[j], HIGH);
32+
}
33+
delay(100);
34+
for (int j = 0; j < 7; j++) {
35+
digitalWrite(satir[j], LOW);
36+
}
37+
digitalWrite(sutun[i], HIGH);
38+
}
39+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* Kayan Ok İşareti örneği,
3+
*
4+
* Bu örnekte temel konfigürasyon ayarları yapılmaktadır.
5+
* 5x7 LED ekrandanın ok işareti DENEYAP logosundan aşağıya doğru kaymaktadır.
6+
*
7+
* Bu algılayıcı I2C haberleşme protokolü ile çalışmaktadır.
8+
*
9+
* Bu örnek Deneyap 5x7 LED Matris için oluşturulmuştur
10+
* ------> www.....com <------ //docs
11+
* ------> https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library <------
12+
*
13+
*/
14+
15+
#include <Deneyap_5x7LedEkran.h> // Deneyap_5x7LedEkran.h kütüphanesi eklendi
16+
17+
DotMatrix LEDMatris; // DotMatrix için Class tanımlaması
18+
19+
void setup()
20+
{
21+
Serial.begin(115200); // Seri haberleşme başlatıldı
22+
if (!LEDMatris.begin(0x0A)){ // begin(slaveAdress) fonksiyonu ile cihazların haberleşmesi başlatıldı
23+
delay(3000);
24+
Serial.println("I2C bağlantısı başarısız "); // I2C bağlantısı başarısız olursa seri terminale yazdırma
25+
while (1);
26+
}
27+
}
28+
29+
void loop() {
30+
for (int i = 0; i < 10; i++) {
31+
LEDMatris.dotrow1(0, 0, 1, 0, 0);
32+
LEDMatris.dotrow2(0, 0, 1, 0, 0);
33+
LEDMatris.dotrow3(0, 0, 1, 0, 0);
34+
LEDMatris.dotrow4(0, 0, 1, 0, 0);
35+
LEDMatris.dotrow5(1, 1, 1, 1, 1);
36+
LEDMatris.dotrow6(0, 1, 1, 1, 0);
37+
LEDMatris.dotrow7(0, 0, 1, 0, 0);
38+
}
39+
for (int i = 0; i < 10; i++) {
40+
LEDMatris.dotrow1(0, 0, 0, 0, 0);
41+
LEDMatris.dotrow2(0, 0, 1, 0, 0);
42+
LEDMatris.dotrow3(0, 0, 1, 0, 0);
43+
LEDMatris.dotrow4(0, 0, 1, 0, 0);
44+
LEDMatris.dotrow5(0, 0, 1, 0, 0);
45+
LEDMatris.dotrow6(1, 1, 1, 1, 1);
46+
LEDMatris.dotrow7(0, 1, 1, 1, 0);
47+
}
48+
for (int i = 0; i < 10; i++) {
49+
LEDMatris.dotrow1(0, 0, 0, 0, 0);
50+
LEDMatris.dotrow2(0, 0, 0, 0, 0);
51+
LEDMatris.dotrow3(0, 0, 1, 0, 0);
52+
LEDMatris.dotrow4(0, 0, 1, 0, 0);
53+
LEDMatris.dotrow5(0, 0, 1, 0, 0);
54+
LEDMatris.dotrow6(0, 0, 1, 0, 0);
55+
LEDMatris.dotrow7(1, 1, 1, 1, 1);
56+
}
57+
for (int i = 0; i < 10; i++) {
58+
LEDMatris.dotrow1(0, 0, 1, 0, 0);
59+
LEDMatris.dotrow2(0, 0, 0, 0, 0);
60+
LEDMatris.dotrow3(0, 0, 0, 0, 0);
61+
LEDMatris.dotrow4(0, 0, 1, 0, 0);
62+
LEDMatris.dotrow5(0, 0, 1, 0, 0);
63+
LEDMatris.dotrow6(0, 0, 1, 0, 0);
64+
LEDMatris.dotrow7(0, 0, 1, 0, 0);
65+
}
66+
for (int i = 0; i < 10; i++) {
67+
LEDMatris.dotrow1(0, 1, 1, 1, 0);
68+
LEDMatris.dotrow2(0, 0, 1, 0, 0);
69+
LEDMatris.dotrow3(0, 0, 0, 0, 0);
70+
LEDMatris.dotrow4(0, 0, 0, 0, 0);
71+
LEDMatris.dotrow5(0, 0, 1, 0, 0);
72+
LEDMatris.dotrow6(0, 0, 1, 0, 0);
73+
LEDMatris.dotrow7(0, 0, 1, 0, 0);
74+
}
75+
for (int i = 0; i < 10; i++) {
76+
LEDMatris.dotrow1(1, 1, 1, 1, 1);
77+
LEDMatris.dotrow2(0, 1, 1, 1, 0);
78+
LEDMatris.dotrow3(0, 0, 1, 0, 0);
79+
LEDMatris.dotrow4(0, 0, 0, 0, 0);
80+
LEDMatris.dotrow5(0, 0, 0, 0, 0);
81+
LEDMatris.dotrow6(0, 0, 1, 0, 0);
82+
LEDMatris.dotrow7(0, 0, 1, 0, 0);
83+
}
84+
for (int i = 0; i < 10; i++) {
85+
LEDMatris.dotrow1(0, 0, 1, 0, 0);
86+
LEDMatris.dotrow2(1, 1, 1, 1, 1);
87+
LEDMatris.dotrow3(0, 1, 1, 1, 0);
88+
LEDMatris.dotrow4(0, 0, 1, 0, 0);
89+
LEDMatris.dotrow5(0, 0, 0, 0, 0);
90+
LEDMatris.dotrow6(0, 0, 0, 0, 0);
91+
LEDMatris.dotrow7(0, 0, 1, 0, 0);
92+
}
93+
for (int i = 0; i < 10; i++) {
94+
LEDMatris.dotrow1(0, 0, 1, 0, 0);
95+
LEDMatris.dotrow2(0, 0, 1, 0, 0);
96+
LEDMatris.dotrow3(1, 1, 1, 1, 1);
97+
LEDMatris.dotrow4(0, 1, 1, 1, 0);
98+
LEDMatris.dotrow5(0, 0, 1, 0, 0);
99+
LEDMatris.dotrow6(0, 0, 0, 0, 0);
100+
LEDMatris.dotrow7(0, 0, 0, 0, 0);
101+
}
102+
for (int i = 0; i < 10; i++) {
103+
LEDMatris.dotrow1(0, 0, 1, 0, 0);
104+
LEDMatris.dotrow2(0, 0, 1, 0, 0);
105+
LEDMatris.dotrow3(0, 0, 1, 0, 0);
106+
LEDMatris.dotrow4(1, 1, 1, 1, 1);
107+
LEDMatris.dotrow5(0, 1, 1, 1, 0);
108+
LEDMatris.dotrow6(0, 0, 1, 0, 0);
109+
LEDMatris.dotrow7(0, 0, 0, 0, 0);
110+
}
111+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Random Led Yakma örneği,
3+
*
4+
* Bu örnekte temel konfigürasyon ayarları yapılmaktadır.
5+
* Random satır ve random sütun sayısı atması yapılmaktadır.
6+
* 5x7 LED ekranında atanan satır ve sütundaki LED'i yakmaktadır.
7+
*
8+
* Bu algılayıcı I2C haberleşme protokolü ile çalışmaktadır.
9+
*
10+
* Bu örnek Deneyap 5x7 LED Matris için oluşturulmuştur
11+
* ------> www.....com <------ //docs
12+
* ------> https://github.com/deneyapkart/deneyap-5x7-led-matris-arduino-library <------
13+
*
14+
*/
15+
#include <Deneyap_5x7LedEkran.h> // Deneyap_5x7LedEkran.h kütüphanesi eklendi
16+
17+
DotMatrix LEDMatris; // DotMatrix için Class tanımlaması
18+
19+
int randNumberRow = random(1, 8); // 1'den 7 kadar Random satır sayısı ataması
20+
int randNumberCol = random(1, 6); // 1'den 5 kadar Random sütun sayısı ataması
21+
22+
void setup() {
23+
Serial.begin(115200); // Seri haberleşme başlatıldı
24+
if (!LEDMatris.begin(0x0A)) { // begin(slaveAdress) fonksiyonu ile cihazların haberleşmesi başlatıldı
25+
delay(3000);
26+
Serial.println("I2C bağlantısı başarısız "); // I2C bağlantısı başarısız olursa seri terminale yazdırma
27+
while (1);
28+
}
29+
}
30+
31+
void loop() {
32+
LEDMatris.pixelLed(randNumberRow, randNumberCol); // Random atanan satır ve sutun sayısındaki LED yanmaktadır.
33+
}

0 commit comments

Comments
 (0)