aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire
AgeCommit message (Collapse)Author
2021-05-26Revert "Declare TwoWire functions as virtual" (#412)Alexander Entinger
2021-02-25Declare TwoWire functions as virtualArkadyGamza
To make alternative implementations of the TwoWire class (e.g. SoftwareWire for software I2C) work properly being passed to libraries that expect TwoWire type.
2021-01-09fix twi_manageTimeoutFlag function descriptionGreyson Christoforo
2020-06-11Wire: apply last suggested comment from @matthijskooijmanMartino Facchin
2020-06-11Wire: improve comments on timeoutMatthijs Kooijman
2020-06-11Wire: add sensible defaults to setWireTimeoutMartino Facchin
2020-06-11Introduce non compulsory Wire timeoutGreyson Christoforo
move timout handling into its own function change timeout from milliseconds to microseconds don't forget operating slave address or the bitrate when we reset because of a timeout Co-Authored-By: Witold Markowski <witold.a.markowski@gmail.com> fix delay datatype uint16_t --> uint32_t Update libraries/Wire/src/utility/twi.c fix mix up using TWBR instea of TWAR! Co-Authored-By: Matthijs Kooijman <matthijs@stdin.nl> Update libraries/Wire/src/utility/twi.c fix 2nd TWBR/TWAR mixup Co-Authored-By: Matthijs Kooijman <matthijs@stdin.nl> twi_stop() should use the same timeout as everywhere else all while loops are now protected by timeouts Revert "twi_stop() should use the same timeout as everywhere else" This reverts commit 68fe5f1dae1bb41183bb37eeda3fb453394a580c. make timeout counter volatile rename timeout function for improved clarity - resetting the twi interface on timeouts is now optional - timeouts in the ISR are no longer hardcoded and now obey the set timeout value - a user-readable flag is now set whenever a timeout occurs - the user can clear this flag whenever they like
2019-09-16Add i2c_scanner to example of Wire (#93)Asuki Kono
2019-08-16Update twi.cCombiesGit
Added __attribute__ ((fallthrough));
2017-11-13UnConfigured I2C Slave ISR Causing Rebootchuck todd
In a MultiMaster I2C environment, The Default value of 0xFE in the TWAR cause the Arduino to respond as an I2C Slave device at address 0x7f. If the Wire.h library was not configured as a I2C Slave, `Wire.begin(slaveID);` the Callbacks for `twi_onSlaveTransmit()` and `twi_onSlaveReceive()` are never initialized. But, they are called during servicing the TWI ISR. This causes a reboot of the Arduino by jumping to an uninitialized function address (0). So, this fix initializes them to the Default Wire.h handler which will respond correctly even during Master Mode operations. A MASTER MODE only Arduino will respond to all Slave Calls that match TWAR, Unless the TWEA bit is disabled outside of Master Transactions. Chuck. It also initialized the TWAR to the General Call ID (0x0) and Disables General Call responses. Chuck.
2017-11-13[WIRE] Remove extra line from digital_potentiometer exampleQuswar Mahmood Abid
2016-06-05Fix buffer being overwritten by multiple twi_transmit callskellerkindt
Fixes that more complex methods (like Stream::print(float)) do not work properly. Without this fix, Wire.print(1.01f); results in '1' because Print::printFloat(double, uint8_t) performs multiple print() and therefore twi_transmit calls. Also Wire.println("Heyho"); results only in a newline character.
2016-03-09Fix Wire registerPaolo Paolucci
Move TWBR register from Wire.cpp to twi.c file.
2016-03-04Move AVR Wire library utility folder under sourceSandeep Mistry
2016-03-03Update library.propertiesSimonePDA
2016-03-02add src folder when missingAlice Pintus
2016-03-01update sentencesAlice Pintus
2016-02-01Fixed typoBrent Wilkins
2016-01-18Update Wire.cppBrent Wilkins
Removed implicit conversions from unsigned, to signed, back to unsigned.
2015-11-28Remove unused keywords from Wire libraries keywords.txtper1234
These functions have been replaced by read() and write() since Arduino 1.0.
2015-10-22check TWWC (Write Collision Flag) bit after setting TWDRSandeep Mistry
as suggested by @earlyprogrammer in #2173, to ensure TWDR value is set if there is a write collision
2015-10-22release TWI bus right after stop or repeated start is conditionSandeep Mistry
this resolves timing issues seen in #1477
2015-09-18Added categories to librariesCristian Maglie
Fix #3812
2015-08-26Wire (AVR): Fix bug with repeated STARTNate Williams
Fix #66
2015-08-25implement Wire.end() for AVR coreSandeep Mistry
2015-07-06Examples: mass code format. See example_formatter.confFederico Fissore
2015-07-03Support for repeated starts added to SAM Wire libraryMatthew Lowe
Additional interface method ported to avr for compatibility Fix issue #2428.
2015-05-20Due to website configuration changes, every url starting with ↵Federico Fissore
http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191
2015-05-19Libraries bundled with cores will take the type of that core, instead of ↵Federico Fissore
relying on an undocumented 'types' property. Fixes #2875
2015-05-14Fixes #2969:Arturo Guadalupi
This fixes the Wire examples that uses I2C reserved address (from 0 to 7) substituting them with 8 that is the first one available and that can be used. I also modified the wire reference http://www.arduino.cc/en/reference/wire according to this fact.
2015-03-27LibraryManager: better type filteringFederico Fissore
2014-07-18missing paragraph field in library.propertiesFede85
2014-07-18modified sentences in library.properties filesFede85
2014-03-06Enable user to change the I2C clock frequency by calling setClock in the ↵Kristian Lauszus
Wire library
2013-11-15Revert "Wire library to the 1.5 format"Cristian Maglie
This reverts commit a31857688bdc270ed65307755ff3b73ef4867982.
2013-09-10Wire library to the 1.5 formatFede85
2013-04-03Merged 1.0.5Cristian Maglie
Merge remote-tracking branch 'arduino/master' into ide-1.5.x Conflicts: app/src/processing/app/Base.java build/shared/revisions.txt hardware/arduino/avr/cores/arduino/malloc.c hardware/arduino/cores/arduino/avr-libc/malloc.c hardware/arduino/cores/arduino/malloc.c todo.txt
2012-12-10fixed permissions on a lot of text files. see #1116Federico Fissore
2012-05-22Pre-merge upstream ArduinoCristian Maglie
2012-01-04Moved libraries folder inside platform folder. Now libraries and examples ↵Cristian Maglie
are searched per board/platform
2009-11-07Moving libraries out of arduino platform / core directory and to top-level.David A. Mellis
2009-06-20Fixing indentation in twi.c.David A. Mellis
2009-06-20Fixing bug in Wire library that caused it to read and discard one extra byte ↵David A. Mellis
when do a requestFrom() a slave device. Thanks to Christopher K. Johnson.
2009-06-01First integration of the Arduino code in Processing 5503: PreProcessor and ↵David A. Mellis
Compiler have been integrated with changes to the Sketch. Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch). Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over. Removing some of the antlr stuff. Disabling the Commander (command-line execution) for now. Added Library, LibraryManager, and Target. Added support for prefixed preferences (e.g. for boards and programmers).