# Animation that turns on and off when I receive an arduino data

**URL:** <https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [December 9, 2019, 4:31am UTC](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259 "2019-12-09T04:31:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebasg94](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@sebasg94](https://discourse.processing.org/u/sebasg94)\
**Post date:** [December 9, 2019, 4:31am UTC](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259/1 "2019-12-09T04:31:51Z")

</div>

I want to make an animation of the car park dashboard lights, but I don’t know how to do it.  
I have 2 images, one of the lights on and one of the lights off. What I try is to make an animation that turns on and off as it is in the car when I receive an arduino data. Please help me.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [December 9, 2019, 4:38am UTC](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259/2 "2019-12-09T04:38:20Z")

</div>

hallo,  
is it possible that you change your topic title to something understandable?  
what your question / problem is about?

and also from the wording, i can not see what the problem is about

- Arduino processing comuniction
- understanding Arduino send lines and
- using that data in draw()

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [December 9, 2019, 11:35am UTC](https://discourse.processing.org/t/animation-that-turns-on-and-off-when-i-receive-an-arduino-data/16259/3 "2019-12-09T11:35:29Z")

</div>

Welcome to the forum!

Good to have you here!

Start by making a sketch with setup and draw.

Load 2 images in draw.

Show your entire code

Then have a boolean variable c that tells which image to show

First try to toggle c by key press

Show your entire code

Check the tutorials for Arduino/ electronic

Chrisir
