Hi, I'm trying to reset my arduino with the code, but it works as if it was always reset. And the LED does not turn on.
int RST=7;
int led = 4;
void setup () {
pinMode (RST, OUTPUT);
pinMode (led, OUTPUT);
}
void loop () {
digitalWrite (led, HIGH);
delay (4000);
digitalWrite (RST, LOW);
}
I've tried to the resetFunc () but still does not work.
gcjr
2
may need to set the output pin connected to the reset pin to the non-reset condition BEFORE configuring the pin as an OUTPUT
Wiring? (A picture of a hand drawn schematic would be preferred over a fritzing diagram.)
vaj4088:
Wiring? (A picture of a hand drawn schematic would be preferred over a fritzing diagram.)
It is just a wire between reset and the digital pin 7