# First code troubleshooting

**URL:** <https://forum.arduino.cc/t/first-code-troubleshooting/1239256>\
**Category:** Programming\
**Created:** [March 24, 2024, 9:57am UTC](https://forum.arduino.cc/t/first-code-troubleshooting/1239256 "2024-03-24T09:57:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![silmslice](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@silmslice](https://forum.arduino.cc/u/silmslice)\
**Post date:** [March 24, 2024, 10:14am UTC](https://forum.arduino.cc/t/first-code-troubleshooting/1239256/3 "2024-03-24T10:14:29Z")

</div>

thank you, i tried taking small steps and everything worked till adding the 5 second timer.

will do some learning and try another night, my attempt tonight came back with a code error so will read through this thread and try getting it working.

> [@Using millis() for timing. A beginners guide](https://forum.arduino.cc/t/using-millis-for-timing-a-beginners-guide/483573):
>
> Part 1 It is not usually long before new Arduino users discover that although the delay() function is easy to use it has side effects, the main one of which is that its stops all activity on the Arduino until the delay is finished (not quite true, I know, but that is usually how the problem presents itself). When this occurs the new user is usually directed to the BlinkWithoutDelay example sketch (BWoD) and/or the excellent thread entitled Several things at the same time. [Several things at the…](http://forum.arduino.cc/index.php?topic=223286.0)

---

_[View the full topic](https://forum.arduino.cc/t/first-code-troubleshooting/1239256)._
