On the Uno R4 Minima and Uno R4 WiFi, pin 13 is made an output after reset, so if you do: void setup() { Serial.begin(9600); delay(5000); } void loop () { Serial.println(digitalRead(13)); delay(1000); ...
void loop() { // إذا الزر مضغوط → شغل الليد digitalWrite(led1, digitalRead(button1)); digitalWrite(led2, digitalRead(button2)); digitalWrite(led3, digitalRead(button3)); } How It Works: Each button is ...
There are easy ways of getting more I/O pins for any project; shift registers, I2C expanders, or ADCs will give you plenty of pins for whatever project you have in mind. All these require extra ...