This is THE 447 FINAL PROJECT this is the frame work put your code in the spot where the it suppose to go and. Make sure you import this into your complier and work on your section, once you done just commit the changes and fork to a new folder

Dependencies:   mbed-rtos mbed draw_test EALib SWSPI

Revision:
0:4abb197a773c
Child:
1:3f7aa28da00d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 01 00:49:17 2015 +0000
@@ -0,0 +1,67 @@
+#include "mbed.h"
+#include "cmsis_os.h"
+
+//declare your input pin and output pin here:
+//DigitalOut led1(p25);
+//DigitalOut led2(p26);
+//DigitalOut led3(p28);
+//
+// declare you globle variable here:
+unsigned char X_coor = 0,Y_coor = 0x0A;
+unsigned char LEDs = ((X_coor << 8)|Y_coor);
+//X_coor is x coordinate from 0 to 6
+//Y_coor is y coordinate form A to F
+//
+//
+//
+
+// this thread is your SPI communication between 2 board
+void SPI_communication(void const *args) {
+    //spi code here
+}
+
+// joystick update x_coor and y_coor here
+void joy_stick_read(void const *args) { //might be an interrupt thread here for interrupt read of joystick
+    // joy stick to update global val of x_coor and y_coor;
+    // update the 8 LEDs here
+}
+
+// this thread use to update the game board
+void game_view_update () {
+    // update the by led game update
+}
+
+// code here to check for winer and turn on the RGB
+void winnercheck () {
+    //check for winner by some condition
+}
+
+//read the accele
+void checkreset () {
+    //read the acceleron meter and compare against the previous value to
+    //determine if the board have been shake the reset the game board;
+}
+
+
+osThreadDef(SPI_communication, osPriorityNormal, DEFAULT_STACK_SIZE); //comm between 2 board
+osThreadDef(joy_stick_read, osPriorityNormal, DEFAULT_STACK_SIZE);//might be an interrupt;
+osThreadDef(game_view_update, osPriorityNormal, DEFAULT_STACK_SIZE);//update game view write to the fifo uart buffer
+osThreadDef(winnercheck, osPriorityNormal, DEFAULT_STACK_SIZE); //check for winner
+osThreadDef(checkreset, osPriorityNormal, DEFAULT_STACK_SIZE); //check for reset
+
+int main() {
+    osThreadCreate(osThread(SPI_communication), NULL);
+    osThreadCreate(osThread(joy_stick_read), NULL);
+    osThreadCreate(osThread(game_view_update), NULL);
+    osThreadCreate(osThread(winnercheck), NULL);
+    osThreadCreate(osThread(checkreset), NULL);
+    // initialize all peripheral here
+    //
+    //
+    //
+    
+    //Main Thread
+    while (true) {
+        //check status and update status
+    }
+}
\ No newline at end of file