Last active
October 28, 2019 07:16
-
-
Save RobolinkAkademi/bad3ad69a637130d56a61b590afd8670 to your computer and use it in GitHub Desktop.
tum_yil_icin_arduino_mufredati_13.3
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 led=10; | |
int sensor=A0; | |
void setup() | |
{ | |
pinMode(led,OUTPUT); | |
} | |
void loop() { | |
int deger=analogRead(sensor); | |
if(deger<500) | |
{ | |
digitalWrite(led,LOW); | |
} | |
else | |
{ | |
digitalWrite(led,HIGH); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment