Back to Parent

Execution I: Code

The code was composed of 3 main pieces of functionality needed for the concept to work:

  1. Deciding an action 
  2. Acting 
  3. Checking for a reaction (Reading the PIR and sending the next decision to the next bus stop)

Each piece of the code was used to define a part of the interaction process. A set of tools and structures were used to create the flow of events. 

We set the code for each bus stop up with the necessary pin variables, a standard speed at which the flag colors function should change each pixel in the strip and a boolean to denote whether or not there is movement being sensed by the PIR (for bus stop 1 only). 



Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0