Adds Balancing function (on the top of SPI_I2C_Parser.cpp) and changes main function adding a test case for balancing to show that it is working as intended.

Dependencies:   CUER_CAN mbed

Fork of BMS_BMUCore_cellvoltage_Mrinank by Mrinank Sharma

Revision:
11:72202d50f6b6
Parent:
10:c8fccc083e1d
Child:
12:f6ff8ddea5ab
--- a/main.cpp	Sat Nov 26 13:46:44 2016 +0000
+++ b/main.cpp	Sat Nov 26 14:26:42 2016 +0000
@@ -158,8 +158,9 @@
         //cout << t.read() << endl;
         wait(3);
         for (int i=0; i<12; i++) {
-            cout << (uint16_t)cellcodes[0][i] << endl;
+            printf("Reading %d mV \r\n", (uint16_t)cellcodes[0][i]); 
         }
+        printf("\r\n"); 
     }
 }