#ifndef TWI_FREQ#define TWI_FREQ 100000L#endif
#ifndef TWI_FREQ#define TWI_FREQ 400000L#endif
How do slave devices know the speed of the i2c bus?
Any idea why articles such as http://www.windmeadow.com/node/42 say "Since the nunchuck uses "Fast" I2C, we will need to change the default speed"?
So SCL determines the speed at which data is sent/received but some devices are not tolerant of a slower than expected clock?
What chip does the Nunchuck use?
#define TWI_FREQ_NUNCHUCK 400000LTWBR = ((CPU_FREQ / TWI_FREQ_NUNCHUCK) - 16) / 2;
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16