johan yapson
/
Nucleof446_counter
counter ver1
main.cpp
- Committer:
- johanyapson
- Date:
- 2017-03-02
- Revision:
- 0:99aabdc13d25
- Child:
- 1:cbdba17a7bd5
File content as of revision 0:99aabdc13d25:
#include "mbed.h" DigitalIn count(D2); int i = 0; int main() { while(1) { if (count == 1) { if (count == 0) { i++; printf("barang = %d\n",i); } } } }