First version. No response from BMS Slave. Very sad story.

Dependencies:   mbed

Committer:
renemagrit
Date:
Thu Dec 13 20:34:16 2018 +0000
Revision:
0:b3d31a017887
Child:
1:fbc5f1a06efd
Child:
2:234a2c91b0e0
Proba 13.12.2018.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
renemagrit 0:b3d31a017887 1 #include "mbed.h"
renemagrit 0:b3d31a017887 2
renemagrit 0:b3d31a017887 3 DigitalOut myled(LED1);
renemagrit 0:b3d31a017887 4
renemagrit 0:b3d31a017887 5 int main() {
renemagrit 0:b3d31a017887 6 while(1) {
renemagrit 0:b3d31a017887 7 myled = 1; // LED is ON
renemagrit 0:b3d31a017887 8 wait(0.2); // 200 ms
renemagrit 0:b3d31a017887 9 myled = 0; // LED is OFF
renemagrit 0:b3d31a017887 10 wait(1.0); // 1 sec
renemagrit 0:b3d31a017887 11 }
renemagrit 0:b3d31a017887 12
renemagrit 0:b3d31a017887 13 }