New answers tagged pins
0
votes
How to power Arduino Uno from L298N motor driver's 5v terminal?
I was facing same problem but I solved it by attaching L298 power pins to icsp power pins
1
vote
How to toggle a pin (LED) simply
To toggle a pin, just read the pjn and invert the value:
#define LEDPIN 2
void loop() {
digitalWrite(LEDPIN, !digitalRead(LEDPIN));
}
You can also just "remember" the last value:
#...
Top 50 recent answers are included
Related Tags
pins × 461arduino-uno × 144
arduino-mega × 34
programming × 34
esp8266 × 32
sensors × 32
power × 27
led × 26
serial × 18
i2c × 18
port-mapping × 18
arduino-nano × 16
hardware × 15
wires × 15
pwm × 14
shields × 14
digital × 14
input × 14
arduino-ide × 13
interrupt × 13
nodemcu × 13
spi × 13
motor × 12
lcd × 11
voltage-level × 11