Commit Graph

12 Commits

Author SHA1 Message Date
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 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 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 f47846662d Added Wire.end() for bit banged version (TwoWire.cpp) 2017-06-11 15:42:05 +10: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
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
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