Skip to content

Commit

Permalink
kbs.version
Browse files Browse the repository at this point in the history
index.py iyileştirme
guncelle.py ekleme
aktar.py ekleme
buzzer.ino iyileştirme
  • Loading branch information
omersavas26 committed Nov 10, 2020
1 parent e7d6f8d commit c32c659
Show file tree
Hide file tree
Showing 19 changed files with 529 additions and 419,703 deletions.
36 changes: 29 additions & 7 deletions Arduino/buzzer.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
int sinyal = 7, buzzer = 8, role = 9;

void(* resetFunc) (void) = 0;//declare reset function at address 0

void cal()
{
digitalWrite(role, HIGH);
Expand All @@ -17,24 +19,44 @@ void cal()
noTone(buzzer);

digitalWrite(role, LOW);
/*delay(500);
digitalWrite(role, HIGH);
delay(500);
digitalWrite(role, LOW);*/

}

void setup() {
delay(60000);
void setup()
{
pinMode(13, OUTPUT);

Serial.begin(9600);

int i = 0;
for(i = 0; i < 60; i++)
{
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);

Serial.println(i);
}

pinMode(sinyal, INPUT);
pinMode(buzzer, OUTPUT);

pinMode(role, OUTPUT);
digitalWrite(role, LOW);
digitalWrite(role, LOW);
}

void loop()
{
int s = (int)(millis() / 1000);
s = s / 60;//dk

if(s > 0 && s % 400 == 0)
{
Serial.println("reset");
resetFunc();
}

if(digitalRead(sinyal))
{
cal();
Expand Down
Binary file added Kutu/Aski.stl
Binary file not shown.
Loading

0 comments on commit c32c659

Please sign in to comment.