콘텐츠 바로가기

Info
CM-900 Series is the embedded board with STM32F103C8 based on 32Bit ARM Cortext-M3 and its circuit diagram and the entire sources are open to public. At this very moment, CM-900 is developed and the prototype models are out in the market, and we plan to introduce newer version with bigger capacity in the future. If you think you can technically contribute to the devel… +more
Leader
Hi everyone I am leader of CM9 circle, developed prototype CM-900 h/w board(CM-900 is one of the CM9 serise) and integrated …+more
Created 2013-04-23 Members 188 Ranking 1 포인트 44,384
Interested Area > Robot H/W Design
USA
Minor Problem with the libraries/Wire/Wire.cpp
Writer : mw46d DATE : January 11, 2014 | Hit : 2,352
I found a little problem with the IDE Wire library. When uint8 TwoWire::requestFrom() is used to request just one byte, the counter was not incremented correctly.

After the while loop, the last byte should be handled like
-       *(rx_buf + rx_buf_len) = i2c_shift_in(port);
+      rx_buf[rx_buf_len++] = i2c_shift_in(port);

I found that while playing the the Pololu MinIMU-9. I plan to write a little bit longer post about that adventure soon;-)

mw46d

Comment 0

Comment Cancel

  • CM9 Developer World
  • Member : 188
  • Circle Ranking : 1
  • Score : 44,384
  • Created Date : April 23, 2013

검색

Circle News

Members online(0)

Cooperating Circle
  • No Cooperating Circle