# Help with coding change

**URL:** <https://forum.arduino.cc/t/help-with-coding-change/962276>\
**Category:** General Guidance\
**Created:** [February 22, 2022, 5:05pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276 "2022-02-22T17:05:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![spudmab](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@spudmab](https://forum.arduino.cc/u/spudmab)\
**Post date:** [February 22, 2022, 5:05pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/1 "2022-02-22T17:05:01Z")

</div>

Hi everybody, im Mat and im extremely new to Arduino, coding ect.

I have only got into it from watching a YouTube video for a rear light i want to build for my truck.

I have made a setup using a nano, i managed to code it and got everything working.

I want to change the operation of the lights slightly but dont know where to start.

Anyone fancy giving me a hand.

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [February 22, 2022, 5:23pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/2 "2022-02-22T17:23:45Z")

</div>

> [@spudmab](#):
>
> I want to change the operation of the lights slightly but dont know where to start.

You can start by reviewing and following the posting rules.

> [@How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/681310):
>
> Welcome to the Arduino forum! A guide explaining how to get the best out of this forum is available at the link below. Please read it:

* * *

Show us a good schematic of your proposed circuit.  
Show us a good image of **your** ‘actual’ wiring.  
Give links to components.

* * *

In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the **complete sketch**.

Use the \</\> icon from the ‘reply menu’ to attach the copied sketch.

---

<div class="post-metadata">

**Author:** ![Ballscrewbob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ballscrewbob/32/950458_2.png) [@Ballscrewbob](https://forum.arduino.cc/u/Ballscrewbob)\
**Post date:** [February 22, 2022, 5:34pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/3 "2022-02-22T17:34:54Z")

</div>

Your post was **MOVED** to its current location as it is more suitable.

Could you also take a few moments to [Learn How To Use The Forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966).

Other general [help and troubleshooting advice can be found here.](https://forum.arduino.cc/t/please-check-the-troubleshooting-guide-before-posting-here/52209/2)

It will help you get the best out of the forum in the future.

---

<div class="post-metadata">

**Author:** ![slipstick](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@slipstick](https://forum.arduino.cc/u/slipstick)\
**Post date:** [February 22, 2022, 5:39pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/4 "2022-02-22T17:39:10Z")

</div>

> [@spudmab](#):
>
> I want to change the operation of the lights slightly but dont know where to start.

A good start would be considerably more detail of exactly what changes you want to make.

That plus posting your existing code and schematic would at least give us something to work with.

Steve

---

<div class="post-metadata">

**Author:** ![spudmab](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@spudmab](https://forum.arduino.cc/u/spudmab)\
**Post date:** [February 22, 2022, 5:54pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/5 "2022-02-22T17:54:22Z")

</div>

I dont have the code info or any of the components as i used a video from YouTube.

[![](https://europe1.discourse-cdn.com/arduino/original/4X/6/c/a/6ca726af92c1d8be3ecef6919a74fb79e47667da.jpeg "DIY Modern LED Car Tail Light With Dynamic Indicators and DRL | Audi Style | Arduino") ](https://www.youtube.com/watch?v=67JrLL80jYM)

The light works great with the coding. I would just like to keep the centre leds as side and brake when reverse is turned on.

Just like when the indicators are flashing.

I changed the total amount of LED'S and how many i want to flash with the indicators. Just not sure what part of the code needs to be changed

> **[Modern\_Car\_Tail\_Light.zip](https://drive.google.com/file/d/1fg1z-gFB5RbOu5zlVFXM5j4NMkU66DA0/view)**
>
> Google Drive file.

Is the code link

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [February 22, 2022, 6:23pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/6 "2022-02-22T18:23:49Z")

</div>

ZIP files can be dangerous.

* * *

Please read the forum rules.

* * *

Show us a good schematic of your proposed circuit.

Show us a good image of **your actual** wiring.

---

<div class="post-metadata">

**Author:** ![alto777](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/alto777/32/317385_2.png) [@alto777](https://forum.arduino.cc/u/alto777)\
**Post date:** [February 22, 2022, 7:06pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/7 "2022-02-22T19:06:52Z")

</div>

And post the code you must have downloaded to the Arduino w/o realizing that you were doing.

a7

---

<div class="post-metadata">

**Author:** ![ToddL1962](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/toddl1962/32/225060_2.png) [@ToddL1962](https://forum.arduino.cc/u/ToddL1962)\
**Post date:** [February 22, 2022, 7:12pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/8 "2022-02-22T19:12:32Z")

</div>

> [@spudmab](#):
>
> I want to change the operation of the lights slightly but dont know where to start.
> 
> Anyone fancy giving me a hand.

Sure. Find the lights in your code and then change them.

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [February 22, 2022, 7:19pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/9 "2022-02-22T19:19:41Z")

</div>

The Arduino source code is the contents of that .ino file that you have downloaded. Post it here and be sure to use code tags.

What is the current behavior and in what way would you like to change it?

---

<div class="post-metadata">

**Author:** ![spudmab](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@spudmab](https://forum.arduino.cc/u/spudmab)\
**Post date:** [February 22, 2022, 7:32pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/10 "2022-02-22T19:32:24Z")

</div>

I will have to get my laptop from my workshop and try to upload the info.

I just want the reverse light to not be the complete length of LED'S, i want it to only be as wide as the indicators,

This should give me side and brake lights no matter what other lights are turned on

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [February 22, 2022, 8:26pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/11 "2022-02-22T20:26:53Z")

</div>

> [@spudmab](#):
>
> I just want the reverse light to not be the complete length of LED'S, i want it to only be as wide as the indicators

So instead of this:

 ![brk1](https://europe1.discourse-cdn.com/arduino/original/4X/f/5/f/f5f645c2714c8088937b87f9535a02a8f00af3d9.png)  
You want this?  
 ![brk2](https://europe1.discourse-cdn.com/arduino/original/4X/7/4/a/74aab743d041d1e53118ec971e326c00721173b0.png)

---

<div class="post-metadata">

**Author:** ![spudmab](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@spudmab](https://forum.arduino.cc/u/spudmab)\
**Post date:** [February 22, 2022, 8:44pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/12 "2022-02-22T20:44:36Z")

</div>

Yes thats basically what i want.

I have looked at the sketch and most of it makes sense just cant figure what needs to be altered.

I will get my laptop from my unit then we can go from there

---

<div class="post-metadata">

**Author:** ![Domnulvlad](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Domnulvlad](https://forum.arduino.cc/u/Domnulvlad)\
**Post date:** [February 22, 2022, 8:59pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/13 "2022-02-22T20:59:39Z")

</div>

If you want to modify code found on the internet, you will need to analyze it and unfortunately this time there aren't many comments left by the author so you need at least a good understanding of Arduino to make sense of it. It's not very difficult, but we all have to start somewhere.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 21, 2022, 8:59pm UTC](https://forum.arduino.cc/t/help-with-coding-change/962276/14 "2022-08-21T20:59:41Z")

</div>

Closed on August 21, 2022, 8:59pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
