First commit

This commit is contained in:
2023-02-14 21:16:47 +00:00
commit bdcfde4821
26 changed files with 1455 additions and 0 deletions

20
light/light.ino Normal file
View File

@ -0,0 +1,20 @@
int sensorPin = A0;
int LED = 13;
int sensorValue = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(LED,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
sensorValue = analogRead(sensorPin);
digitalWrite(LED, HIGH);
delay(sensorValue);
digitalWrite(LED,LOW);
delay(sensorValue);
Serial.println(sensorValue);
}