Commit Graph

33 Commits

Author SHA1 Message Date
kellerkindt 43d5e073b4 Fix buffer being overwritten by multiple twi_transmit calls
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-06-05 03:01:57 +02:00
Paolo Paolucci 7b2f6fc028 Fix Wire register
Move TWBR register from Wire.cpp to twi.c file.
2016-03-09 15:47:55 -05:00
Sandeep Mistry aa710ab682 Move AVR Wire library utility folder under source 2016-03-04 17:11:56 -05:00
SimonePDA bdc58c5baa Update library.properties 2016-03-03 19:13:25 +01:00
Alice Pintus 3ba80468d5 add src folder when missing 2016-03-02 14:45:57 +01:00
Alice Pintus f81317889e update sentences 2016-03-01 16:09:50 +01:00
Brent Wilkins b3caf62124 Fixed typo 2016-02-01 12:52:29 -07:00
Brent Wilkins 258172f6ab Update Wire.cpp
Removed implicit conversions from unsigned, to signed, back to unsigned.
2016-01-18 13:12:11 -07:00
per1234 9e9bc7549c Remove unused keywords from Wire libraries keywords.txt
These functions have been replaced by read() and write() since Arduino
1.0.
2015-11-28 17:56:21 -08:00
Sandeep Mistry 02dcc6ec74 check TWWC (Write Collision Flag) bit after setting TWDR
as suggested by @earlyprogrammer in #2173, to ensure TWDR value is set
if there is a write collision
2015-10-22 16:33:00 +02:00
Sandeep Mistry 48bcef5a15 release TWI bus right after stop or repeated start is condition
this resolves timing issues seen in #1477
2015-10-22 16:29:43 +02:00
Cristian Maglie 08de587da7 Added categories to libraries
Fix #3812
2015-09-18 11:01:08 +02:00
Nate Williams 0b27210105 Wire (AVR): Fix bug with repeated START
Fix #66
2015-08-26 16:02:02 +02:00
Sandeep Mistry eab6601ebc implement Wire.end() for AVR core 2015-08-25 10:24:24 -04:00
Federico Fissore b5a130afb5 Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
Matthew Lowe c13cf02651 Support for repeated starts added to SAM Wire library
Additional interface method ported to avr for compatibility
Fix issue #2428.
2015-07-03 16:59:30 +02:00
Federico Fissore b40f171220 Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191 2015-05-20 17:10:06 +02:00
Federico Fissore 7c585abf3f Libraries bundled with cores will take the type of that core, instead of relying on an undocumented 'types' property. Fixes #2875 2015-05-19 12:24:11 +02:00
Arturo Guadalupi 9a9760cc86 Fixes #2969:
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-05-14 11:27:00 +02:00
Federico Fissore da5830c4bf LibraryManager: better type filtering 2015-03-27 14:51:19 +01:00
Fede85 6fb4b2795c missing paragraph field in library.properties 2014-07-18 20:08:01 +02:00
Fede85 2f7cc5ff55 modified sentences in library.properties files 2014-07-18 19:41:34 +02:00
Kristian Lauszus 5216e551a5 Enable user to change the I2C clock frequency by calling setClock in the Wire library 2014-03-06 17:23:49 +01:00
Cristian Maglie f0fa1fd39a Revert "Wire library to the 1.5 format"
This reverts commit a31857688bdc270ed65307755ff3b73ef4867982.
2013-11-15 12:54:59 +01:00
Fede85 8c7c1c75fe Wire library to the 1.5 format 2013-09-10 18:50:42 +02:00
Cristian Maglie ee90e68e86 Merged 1.0.5
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
2013-04-03 13:51:04 +02:00
Federico Fissore c453e0a32e fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00
Cristian Maglie 3786e337e0 Pre-merge upstream Arduino 2012-05-22 11:23:47 +02:00
Cristian Maglie 8c2b5b979a Moved libraries folder inside platform folder. Now libraries and examples are searched per board/platform 2012-01-04 15:14:51 +01:00
David A. Mellis 6005c59ad0 Moving libraries out of arduino platform / core directory and to top-level. 2009-11-07 17:54:56 +00:00
David A. Mellis f79f2e0d11 Fixing indentation in twi.c. 2009-06-20 20:48:55 +00:00
David A. Mellis 6b62b244d5 Fixing bug in Wire library that caused it to read and discard one extra byte when do a requestFrom() a slave device. Thanks to Christopher K. Johnson. 2009-06-20 20:43:24 +00:00
David A. Mellis db605dd18b First integration of the Arduino code in Processing 5503: PreProcessor and 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).
2009-06-01 08:32:11 +00:00