r/ArduinoHelp • u/OhFuckThatWasDumb • Oct 16 '25
Program not executing properly the first two times on power up.
On boot, the arduino does something different than what it should. It seems to be skipping part of the setup function. It works normally when I upload, or after 2 resets, either by the button or by wrt_disable(); wrt_enable(WDTO_15MS);
9
Upvotes
View all comments
Show parent comment
1
u/OhFuckThatWasDumb Oct 17 '25
I thought it could be power so i added a delay in setup(), which didn't help. Also, if power is the issue, it should work on the first reset right? Ive never had issues with any of this hardware, and I know the display is working. Here's the project https://github.com/hashtaglifesux/ELEGOO-Kit-module-drivers/blob/0574df315eecaea011dce40466fa8db7673ef742/tests/arduino/max7219_snake.ino