Code Writing, Part 1

I think the code for this project would include a ‘loop’ where two functions are alternated: broadcasting (A) and receiving (B). How would this work?

The simplest example would be that two units would only influence each others’ colors, depending on their distance to each other (closer together or wider apart).

The code would exist of two functions: one that broadcasts color value, and one that reads signal strength and color value, and then assigns a new color to the LCD. Each node would switch between these two functions.

Thanks to Julia Nacsa, for helping me to get started!

Advertisements

Please tell me what you think!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s