NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

int start = -1; // for incoming serial data
int pako = -1;
int yangin = -1;
int donma = -1;
int ariza = -1; // for incoming serial data
int count=0;
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
output(13);
led(13,0);
Serial.print("Start Noktasi:");//Start
//establishContact();
}

void loop() {


if(Serial.available() >0 && count==0)
{

start=Serial.read();
Serial.println(start);
Serial.print("Pako Noktasi:");
count++;
}
else if(Serial.available() >0 && count==1)
{
pako=Serial.read(); //PAKO
Serial.println(pako);
Serial.print("Yangin Noktasi:");
count++;
}
else if(Serial.available() >0 && count==2)
{
yangin=Serial.read(); //YANGIN
Serial.println(yangin);
Serial.print("Donma Noktasi:");
count++;
}
else if(Serial.available() >0 && count==3)
{
donma=Serial.read(); //DONMA
Serial.println(donma);
count++;
Serial.print("Ariza Noktasi:");
}
else if(Serial.available() >0 && count==4)
{
ariza=Serial.read(); //YANGIN
Serial.println(ariza);
count++;
}

if(count==5)
{
if((start==48 || pako==49) && (pako==48 || pako==49))//48=0 49=1
{
if(start==49 && pako == 49)
{
if(yangin==48)
{
if(donma==48)
{
if(ariza==48)
{
Serial.println("LED YANDİ");

led(13, 1);
}
}
}
}
}
establishContact();
}
}
void led(int pin,int value )
{
digitalWrite(pin,value);
}

void output(int pin)
{
pinMode(pin,OUTPUT);
}

void establishContact() {
while (Serial.available() <= 0) {
Serial.print('A');// send a capital A
delay(300);
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.