You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<DeneyapKartQRCodeReader.h>//kütüphanenin içinde kamere ile ilgili fonksiyonlar da ekli bu nedenle harici kamera kütüphanesi eklememize gerek yoktur.
2
+
// kamera pin dahil
3
+
#include<Deneyap_Servo.h>
4
+
DKQRCodeReader reader(CAMERA_MODEL_DENEYAP_KART);
5
+
String QRcode;
6
+
int i=0;
7
+
int b=0;
8
+
Servo servo1; // 1. servo motor için class tanımlanması
9
+
Servo servo2; // 2. servo motor için class tanımlanması
10
+
11
+
voidQRCodeCalistir(void *data) {
12
+
structQRCodeData qrCodeData; //Qr codu okuyabilmemiz için class tanımlaması yapıyoruz.
13
+
while (true) {
14
+
if (reader.receiveQrCode(&qrCodeData, 100)) // bool değişkeni saydırıyor, milisaniye saydırıyor
15
+
{
16
+
Serial.println("QRCode Valid");
17
+
if (qrCodeData.valid) //Qr code okuması yapabiliyorsa if döngüsü içerisine girecek
18
+
{
19
+
Serial.print("Payload: ");
20
+
QRcode = (constchar *)qrCodeData.payload;//QR code içerisinden okuma yapar
0 commit comments