# My code only runs once ? It seems to get stuck in a function, not allowing my car to move after the first click

**URL:** <https://forum.arduino.cc/t/my-code-only-runs-once-it-seems-to-get-stuck-in-a-function-not-allowing-my-car-to-move-after-the-first-click/923801>\
**Category:** Programming\
**Created:** [November 10, 2021, 11:04pm UTC](https://forum.arduino.cc/t/my-code-only-runs-once-it-seems-to-get-stuck-in-a-function-not-allowing-my-car-to-move-after-the-first-click/923801 "2021-11-10T23:04:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [November 10, 2021, 11:04pm UTC](https://forum.arduino.cc/t/my-code-only-runs-once-it-seems-to-get-stuck-in-a-function-not-allowing-my-car-to-move-after-the-first-click/923801/2 "2021-11-10T23:04:35Z")

</div>

> [@dell2468](#):
>
> Code starts from here:

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'  
  
Use [color = red] **code tags** [/color] (the \</\> icon above the compose window)&nbsp;to make it easier to read and copy for examination

> [@How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966):
>
> See also [FAQ - Arduino Forum](https://forum.arduino.cc/faq) for general rules on forum behavior and etiquette. Hello, Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frus…

---

_[View the full topic](https://forum.arduino.cc/t/my-code-only-runs-once-it-seems-to-get-stuck-in-a-function-not-allowing-my-car-to-move-after-the-first-click/923801)._
