Made minor changes to main.c and game.c to fix formatting and syntax errors.
Moved all functions dealing with interrupts to main.c. Created an initButtons function in main.c instead of editing the configurebuttonsaspins function in button.c (contains interrupt info so move to main.c). Also, I moved initTimer from game.c to main.c because it has information dealing with interrupts. C2C Jason Mossing helped me realize this.
Added a Start_Over function that will allow the game to start over after the game over or you win message has been displayed and once a button is pressed. Also, began working on implementing the game logic in C. Still have more work to do on the game logic and brushing up on the syntax. C2C Mossing helped me with the Start_Over function and the game logic, and I referenced his code to get this part done.
Edited the slave select to work for port 1 pin 0 in lcd.c. Edited clearPlayer and updatePlayer in game.c to use the writeDataByte command rather than the writeString command. Commented out the interrupt code in the main.c file to make testing easier (recently had a failed test). Changed the MoveCursorLineTwo function to work for 0xC0. Finally, edited the movePlayer function to return the position of the player. These changes were made due to a failed test. C2C Mossing helped me identify that movePlayer needs to return the position of the player.
Changed button logic in game.c, deleted code that cleared interrupt flags in button interrupt, changed slave select to 1.4. C2C Baron helped me with the logic and looked over my code.
Same commit as last time, forgot to save main.c
Changed the button initialization to be more direct and corrected a minor error in button.c. Also, Captain Branchflower helped me move my button logic functions from my while loop down into my interrupt subroutine. He helped me troubleshoot my code and find out that the code needed to be moved intothe interrupt subroutine. Also, he recommended changes in my while loop to make the program operate correctly.
B-functionality achieved! WOOT WOOT! Added code to make my winner and game over logic correctly display the strings and correctly respond to button pushes. This was done by disabling the Timer_A interrupt, disabling interrupts, writing the string, enabling the interrupts, delaying for a set number of cycles, clearing the timer, and enabling Timer_A (in that order). Thanks to Captain Branchflower for helping me figure this part out.