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.
Fork of BMS_BMUCore_cellvoltage_Mrinank by
main.cpp@0:789ff258c72f, 2016-08-14 (annotated)
- Committer:
- ItsJustZi
- Date:
- Sun Aug 14 20:04:17 2016 +0000
- Revision:
- 0:789ff258c72f
Initial Code for BMU
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ItsJustZi | 0:789ff258c72f | 1 | #include "mbed.h" |
ItsJustZi | 0:789ff258c72f | 2 | |
ItsJustZi | 0:789ff258c72f | 3 | DigitalOut myled(LED1); |
ItsJustZi | 0:789ff258c72f | 4 | |
ItsJustZi | 0:789ff258c72f | 5 | int main() { |
ItsJustZi | 0:789ff258c72f | 6 | while(1) { |
ItsJustZi | 0:789ff258c72f | 7 | myled = 1; |
ItsJustZi | 0:789ff258c72f | 8 | wait(0.2); |
ItsJustZi | 0:789ff258c72f | 9 | myled = 0; |
ItsJustZi | 0:789ff258c72f | 10 | wait(0.2); |
ItsJustZi | 0:789ff258c72f | 11 | } |
ItsJustZi | 0:789ff258c72f | 12 | } |