MDテスト用プログラム
Dependencies: FastPWM GMD_template_lib mbed
Fork of NewMD2 by
Diff: main.cpp
- Revision:
- 4:894559ccce05
- Parent:
- 1:29e84d1e7bcc
- Child:
- 5:9d1b1948a9b6
diff -r 50bdba5534a7 -r 894559ccce05 main.cpp --- a/main.cpp Sat Jul 02 06:28:27 2016 +0000 +++ b/main.cpp Sun Jul 03 02:33:31 2016 +0000 @@ -11,8 +11,9 @@ }; char address = 0; + size_t address_offset = 4; for (size_t i = 0; i < din_num; ++i) { - address |= din[i].read() << (i + 2); + address |= din[i].read() << (i + address_offset); } return address; }