كود simple led turn on turn off باستخدام اردوينو arduino
- 2021-02-28
توصيف
simple_led_turn_on
كود led اردوينو
int ledPin = 12; // LED connected to digital pin 13
//int inPin = 7; // pushbutton connected to digital pin 7
int val = 0; // variable to store the read value
void setup() {
pinMode(ledPin, OUTPUT); // sets the digital pin 13 as output
}
void loop() {
digitalWrite(ledPin, HIGH); // sets the LED to the button's value
}