WEEK 3- FRIDAY
- Aug 11, 2019
- 1 min read
Updated: Oct 9, 2019
EMBODIED interaction: shape and augment human cognition with feedback, attention and status.
EMBEDDED interaction (seamless and informative) is what youre focusing on eg. salt shaker, rowing machine - know where to put body part, frisbee- know to throw it
IF, THEN, ELSE is important 'if (value > testValue)'
THE FOR LOOP is important (do something a number of times) 'for (int i =0; i<10; i++)
does a loop and changes something in intervals
THE WHILE LOOP is important 'while(condition)' tests the starting condition and runs the code only if the condition is right eg. if seatbelt is in then dont run, if it isnt then run an alarm code
Testing variables
SWITCH CASE STATEMENT
'switch(variable)
case value1:'
multiple decisions, multiple buttons
TIMING
int time = millis(); - milliseconds
int timer max is 32.7 seconds
TYPES
int = interger a whole number no decimal
float = decimal point number
bool = boolean value true or false (1 or 0)
char = character (a or b etc)
string[]= an array of char's eg hello
LONG = integer but BIGGER
unsigned means it takes away the - number at the start of the 16 bit etc
can write unsigned long or unsigned int
Learning how to use different sensors and using light to manipulate values on screen with an ambient light sensor.



Comments