![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dependencies: FastPWM GMD_template_lib mbed
Diff: main.cpp
- Revision:
- 4:894559ccce05
- Parent:
- 1:29e84d1e7bcc
- Child:
- 5:9d1b1948a9b6
--- 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; }