It's good to get a confirmation from someone who has successfully used the Wire library with Due, though I'm sure we would have heard a lot about it over the years if Arduino SAM Boards shipped with a non-working library. I think the Due Wire library also supports Wire1 in addition to Wire. The libraries in hardware packages other than the one for the currently selected board are not accessible. The Arduino IDE automatically selects the library associated with the currently selected board. Each is written for their respective architecture. The Arduino AVR Boards hardware package includes one version of the Wire library and The Arduino SAM Boards hardware package includes a different version of the Wire library. The same Wire.h Library also works with Arduino UNO + 24C512 EEPROM ArduinoUNO + BMP180 Īctually it's not the same library. Has been demonstrated here using DUE+BMP180+24C512 EEPROM. The Wire.h Library is perfectly supported by the Arduino DUE as I do not think the Arduino Due is supported by the Wire Library. Ideally I need to setup both laptops with one connected to the Arduino Due and the other connected to the Arduino Zero and debug it all. Swapped out the Arduino Due with an Arduino Mega2560, Leonardo and UNO. I tried it with both sets of pins & i did have pull-up resistors on the 20 & 21 pins. From does seem like it would be useful to add that information to the Wire library reference page. Library examples page implies the Wire library is not compatible with Due I've reported it to the Arduino developers: It does seem like it would be useful to add that information to the Wire library reference page. Adding two pullup resistor on SDA1 and SCL1 lines is required for using Wire1. While SDA and SCL have internal pullup resistors, SDA1 and SCL1 have not. SDA1 and SCL1 can be controlled using the Wire1 class provided by the Wire library. Support TWI communication using the Wire library. There is the question of which set of pins would be supported. My hunch is that with the Arduino Due having Two sets of TWI pins Its example sketches are functionally identical (other than a couple of device IDs being different). The hardware package of the Due, Arduino SAM Boards does contain a Wire library. I don't have any experience with the Due but it definitely seems wrong or at the least unclear what that sentence means.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |