Commit Graph

37 Commits

Author SHA1 Message Date
Roger Clark 6548456957 Change Wire.write() return types from void to size_t to be compatible with the Arduino API 2018-05-23 18:03:38 +10:00
André e1ae43c826
Fixed missing return value. 2018-04-27 14:48:41 +01:00
stevstrong 1abb3f1ca5
Update Wire.cpp
bugfix hw I2C unrecognized addresses 0x76, 0x77
2018-04-25 23:22:17 +02:00
lacklustrlabs c65ec99a8d Updated library.properties 2018-01-21 17:13:17 +01:00
lacklustrlabs 6fe4a55922 Added SoftWire.h 2018-01-21 17:13:17 +01:00
lacklustrlabs 4157ef37a1 Removed some accidental adds 2018-01-21 17:13:17 +01:00
lacklustrlabs 0f78c266ed Added Wire_slave.h (no actual i2c slave implementation yet) 2018-01-21 17:13:17 +01:00
aster94 e2a62de034
Update i2c_scanner_wire.ino 2017-12-08 10:39:53 +01:00
aster94 b82911742f
Delete i2c_scanner_hardwire.ino 2017-12-08 10:37:26 +01:00
aster94 2d8af307dc
Add files via upload 2017-12-08 10:36:53 +01:00
aster94 558108d63e
Delete WireBase.cpp 2017-12-08 10:36:15 +01:00
aster94 848602e0d6
Delete WireBase.h 2017-12-08 10:36:00 +01:00
aster94 4ffdce29fe
Add files via upload 2017-12-08 10:32:59 +01:00
aster94 98ed731df9
Add files via upload 2017-12-07 20:09:30 +01:00
aster94 dbfb68cf91
Add files via upload 2017-12-06 21:52:00 +01:00
victorpv a530b6a3d4 Update Wire.cpp
Adds a check to verify if the port had been already enabled, and only in that case disables/re-enables the port. This also solves the issue of setClock being called after begin(), but doesn't not enable the port if begin() had not been called yet.
2017-09-11 22:49:03 -05:00
victorpv 799f2b3b8a Correct issue with port speed not changing.
The current implementation will not change speed if Wire.setClock is called after begin() since the flags are only applied when the port is enabled from being disabled.
Corrected that by adding 2 lines to disable the port, and then enable it again with the new settings.
Tested and confirmed the new speed is applied.
2017-09-11 22:01:55 -05:00
Roger Clark 71d5ab9112 Wire lib change buffer size definition to BUFFER_LENGTH for better AVR compatibility 2017-08-25 18:33:04 +10:00
Roger Clark 33411b6e94 Default Wire to 100khz 2017-08-06 21:04:02 +10:00
Roger Clark bc41851ce4 Changed default Wire (I2C) to use hardware I2C rather than bit banged software. The existing software Wire implementation has been retained as SoftWare. Examples have also been updated to include Wire, HardWire and Softwire. 2017-08-01 16:47:39 +10:00
Roger Clark 6b85615221 Change Wire endTransmission to have bool instead of unit8 argument - to match with the Arduino API 2017-07-20 17:43:13 +10:00
Roger Clark 0393be3400 Added setClock() to Wire and Hardware - only 100000Hz and 400000Hz are supported 2017-07-15 18:31:02 +10:00
U-MarquisSeven\Brandon 54044592fb changing comment 2017-06-26 18:59:33 -05:00
U-MarquisSeven\Brandon 80339e6073 checking out work from master 2017-06-26 18:57:49 -05:00
Roger Clark 7487d96f70 Fix typo in Hardware end() 2017-06-13 08:32:56 +10:00
Roger Clark 953aa8b88e Added end() to HardWire (I2C) 2017-06-11 15:55:08 +10:00
Roger Clark f47846662d Added Wire.end() for bit banged version (TwoWire.cpp) 2017-06-11 15:42:05 +10:00
Samuel Brucksch 29ef21629c Update Wire.h
changed SDA/SCL pins to the ones that were default in construcor of Wire.cpp
2016-08-07 13:22:53 +02:00
Samuel Brucksch 8119f88b8d Update Wire.cpp
default constructor now uses SCL and SDA defintinion from wire.h
2016-08-07 13:22:05 +02:00
rogerclarkmelbourne 461b86207e Added Serial.begin(115200) to both examples so that they work on non-bootloader boards 2015-08-06 17:42:04 +10:00
rogerclarkmelbourne fa94d9f143 Merge branch 'master' of https://github.com/fergul/Arduino_STM32 into fergul-master 2015-08-06 17:32:13 +10:00
Roger Clark ab37760af7 Oops. Failed to save the revised definition for SOFT_STANARD Wire speed which should have been part of the previous commit 2015-08-03 09:48:50 +10:00
Roger Clark d3bd109013 Changed default speed on Wire library to 100kpbs (same as AVR Arduinos), thanks to @fredbox on the forum for the delay values to achieve 100kbps 2015-08-03 09:45:57 +10:00
Fergus 572b311c3a Fixed formatting to match existing style + Hardwire comments 2015-08-01 19:09:43 +01:00
Fergus 61b212d42b Added i2c_scanner examples to Wire library for testing HWire and Wire 2015-08-01 19:04:18 +01:00
Fergus 3b8b7a79f4 Bugfix for HardWire/I2C + configured/compiled dfu-util to work on Linux again
- Fixed 0 byte payload bug, stopping HardWire from sending only addresses to scan for devices
 - Fixed I2C bug accessing wrong status register for error flags
 - Improved Hardwire endTransmission() return flags to correspond with the actual I2C failure status
 - Removed dos endings from dfu-util autogen script breaking compilation
2015-08-01 18:58:14 +01:00
Roger Clark 5f83c13285 renamed top level folder STM32F1XX to STM32F1 to correspond to other top level folder names e.g. STM32F3 and STM32F4 2015-02-24 20:13:04 +11:00