#define F_CPU 16000000 #include #include /* ----------------------------------------------------------------- * Define the function, theFunction(). * * It has one direct input and one direct output. * Changing the PORTB "variable" is like changing a global variable. * * Make two changes: * 1. change the PORTB variable from to 0xFF from whatever it was before. * 2. take the input variable add one to it and output it again. * --------------------------------------------------------------- */ int theFunction(int aVariable){ PORTB = 0xFF; // make PORTB 0xFF return aVariable + 1; // add one to the variable and return it. }