這裡介紹如何更改 Arduino uno 與 due內建的 Wire 函式庫,提高 I2C 傳輸協定的 baud rate 到 400 KHz,增加資料傳輸的速度。
1.傳統的uno板子使用下面的方式: twi.h ….改為400000
Windows 中的路徑為 E:\PROGS\Arduino\arduino-1.5.7\hardware\arduino\avr\libraries\Wire\utility\twi.h。
#ifndef TWI_FREQ
#define TWI_FREQ 400000L
#endif
2. arm核心的 arduino due使用下面方式: Wire.h ….改為400000
Windows 中的路徑為E:\PROGS\Arduino\arduino-1.5.7\hardware\arduino\sam\libraries\Wire\Wire.h中的TWI_CLOCK
// TWI clock frequency
static const uint32_t TWI_CLOCK = 400000;
uint32_t twiClock;
3. 修改完成後 , 直接關閉 Arduino IDE 再重新開啟也可以,Arduino IDE 會自動檢查並且重新編譯必要的部份)。
As stated by Stanford Medical, It's really the ONLY reason women in this country get to live 10 years longer and weigh on average 19 KG lighter than we do.
(And actually, it has absolutely NOTHING to do with genetics or some secret diet and really, EVERYTHING to do with "how" they are eating.)
BTW, What I said is "HOW", not "WHAT"...
Tap on this link to find out if this little questionnaire can help you unlock your true weight loss possibility