Closed kb- closed 7 years ago
Hi, for the Mega, seems just a lack on finding the correct declarations.
For the Zero, there are probably different registers used in the MCU hardware, so over the previous declaration errors, you will have compatibility issues. It has a completely different MCU architecture, the TWI library already available may be very different from the Atmega series MCUs. (EDIT: I confirm, the I2C module is handled very differently)
Can you attach the entire project for the Mega at least?
I only tried the short example from the Wire library. I know the Zero is handled differently. I hoped finding a library behaving more consistently than Wire. For example, the Zero sometimes doesn't like communicating in master mode if the optional address is set.
Hi,
try with the latest commit. It is not fixed for the Zero, but now should work for all the previously supported by the classic Wire.
Let me know ;)
Hi, I'm getting compilation errors when I try using HardWire with the Arduino Wire tutorial scripts. I attached the log files. Mega2560 compilation error.txt Nano Zero compilation error.txt