First Commit

This commit is contained in:
2024-12-01 19:31:20 -08:00
commit 68458aadc0
4 changed files with 82 additions and 0 deletions

21
Blink/Blink.ino Normal file
View File

@ -0,0 +1,21 @@
int buttonPin = D9;
int Led = A4;
int buttonState;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(Led, OUTPUT);
pinMode(buttonPin, INPUT);
}
// the loop function runs over and over again forever
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == LOW) {
digitalWrite(Led, HIGH);
} else {
digitalWrite(Led, LOW);
}
}