This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFID.h> | |
#include <SPI.h> | |
#define RESET_PIN 8 | |
#define SDA 9 | |
RFID KART(SDA, RESET_PIN); | |
int led1 = 2; | |
int led2 = 3; | |
byte KartID[4] = {89, 142, 59, 154}; | |
bool giris; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFID.h> | |
#include <SPI.h> | |
#define RESET_PIN 8 | |
#define SDA 9 | |
RFID KART(SDA, RESET_PIN); | |
void setup() { | |
Serial.begin(9600); | |
SPI.begin(); | |
KART.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int alev = 8; | |
int ledYesil = 2; | |
int ledKirmizi = 3; | |
int buzzer = 4; | |
void setup() { | |
pinMode(alev, INPUT); | |
pinMode(ledYesil, OUTPUT); | |
pinMode(ledKirmizi, OUTPUT); | |
pinMode(buzzer, OUTPUT); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ledYesil = 2; | |
int ledKirmizi = 3; | |
int buzzer = 4; | |
void setup() { | |
pinMode(ledYesil, OUTPUT); | |
pinMode(ledKirmizi, OUTPUT); | |
pinMode(buzzer, OUTPUT); | |
} | |
void loop() { | |
if (analogRead(A0)>100) { //Gaz Varsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int alev = 3; | |
int ledYesil = 5; | |
int ledKirmizi = 6; | |
int buzzer = 7; | |
void setup() { | |
pinMode(alev, INPUT); | |
pinMode(ledYesil, OUTPUT); | |
pinMode(ledKirmizi, OUTPUT); | |
pinMode(buzzer, OUTPUT); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SevSeg.h" | |
SevSeg ekran; | |
int hizSuresi = 1000; // kaç milisaniyede yenileneceğinin süresi | |
unsigned long sure = millis(); | |
unsigned long sure1 = millis(); | |
int sayi = 65; | |
int bomba = 1; | |
int patladimi = 0; | |
int ledYesil = 0; | |
int ledKirmizi = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SevSeg.h" | |
#include <virtuabotixRTC.h> | |
virtuabotixRTC Saat(A0, A1, A2); | |
SevSeg ekran; | |
unsigned long sure = millis(); | |
void setup() { | |
byte basamak = 4; | |
byte digitPin[] = {2, 3, 4, 5}; | |
byte segmentPin[] = {6, 7, 8, 9, 10, 11, 12, 13}; | |
byte tur = COMMON_CATHODE; //COMMON_CATHODE veya COMMON_ANODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SevSeg.h" | |
SevSeg ekran; | |
int hizSuresi = 80; // kaç milisaniyede yenileneceğinin süresi | |
unsigned long sure = millis(); | |
int sayi = 0; | |
void setup() { | |
byte basamak = 4; | |
byte digitPin[] = {2, 3, 4, 5}; | |
byte segmentPin[] = {6, 7, 8, 9, 10, 11, 12, 13}; | |
byte tur = COMMON_CATHODE; //COMMON_CATHODE veya COMMON_ANODE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <virtuabotixRTC.h> | |
#include <LiquidCrystal_I2C.h> | |
virtuabotixRTC Saat(6, 7, 8); //CLK -> 6, Data -> 7, RST -> 8 | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
String gunler[] = {" PAZARTESI", "SALI", " CARSAMBA", " PERSEMBE", " CUMA", " CUMARTESI", " PAZAR"}; | |
void setup() { | |
lcd.begin(); | |
} | |
void loop() { | |
Saat.updateTime(); //Bu kod ile RTC deki anlık zamanı alıyoruz. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <virtuabotixRTC.h> | |
//CLK -> 6, Data -> 7, RST -> 8 | |
virtuabotixRTC Saat(6, 7, 8); | |
void setup() { | |
// RTC üzerindeki tarih ve saati aşağıdaki kod ile ayarlayabilirsiniz. | |
// saniye, dakika, saat, haftanın günü, ayın günü, ay, yıl | |
Saat.setDS1302Time(50, 40, 11,2, 19, 01, 2021); | |
// 19.01.2021 11:40:50 2(Salı günü anlamına geliyor). |