22bab5f09b
Fix arg type in Wire to size_t ( #5289 )
2018-10-28 20:53:21 -03:00
cb05b86d49
I2C slave support (originally by bjoham) ( #5226 )
...
* I2C slave support; resolving conflicts against current master
* removed unused argument, updateded to hopefully pass Travis
* cleaning up commit as requested by https://github.com/esp8266/Arduino/pull/5162#pullrequestreview-162242359
* cleaning up commit as requested by https://github.com/esp8266/Arduino/pull/5162#pullrequestreview-162242359
* type fix
2018-10-26 12:04:16 -03:00
85e68093e9
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system ( #5018 )
...
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system
* enable dot_a_linkage on internal libraries
* add device tests
* boards generator: deprecate --noextra4k/--allowWPS and fix documentation
2018-08-20 14:35:52 +02:00
9ba8f77678
Check that pins needed by Wire are defined at compile-time ( #4261 )
2018-01-30 14:59:47 -03:00
85078f47a0
yet less warnings for Wall Wextra guys
2017-05-18 06:43:22 -05:00
18297458be
allows global object instances be switch off with defines ( #2344 )
2016-08-01 11:21:50 +08:00
099f3a4147
I2C bus reset with info to user
...
I2C slave might stil have something to send when ESP826 starts I2C, thus
keeping the bus stuck.
Happens e.g. when power failure/reset during transmission.
Thanks to work of drmpf there is a solution.
Implemented as separate method so as not to interfere with existing.
Usage:
Wire.begin();
if (Wire.status() != I2C_OK) Serial.writeln("Something wrong with I2C
bus that cannot be recovered. Perform power cycle or search for other
masters on bus.";
2016-05-26 12:53:48 +02:00
3f15903566
Configurable I2C clock stretching limit
...
Use Wire.setClockStretchLimit(limit)
limit is in uSeconds
2016-02-03 17:05:04 +01:00
1071e8ada1
Add libraries categories
2015-11-02 19:23:26 +01:00
11594b1340
Fix optimistic_yield usage ( #588 )
2015-07-22 22:50:26 +03:00
17de2d7a4e
define in header
...
remove extern from cpp files
2015-07-15 16:32:49 -07:00
d815c36753
optimistic_yield()
...
this introduces optimistic_yield() used for when standard library
methods are normally used in tight loops waiting for something to
happen, like available().
2015-07-13 13:47:13 -07:00
80d5508b73
fix I2C case where using different pins would not work with libs calling begin internally
...
if you call Wire.begin(new_sda, new_scl) and your library calls
internally Wire.begin() this will overwrite the SDA,SCL pins to the
default ones
2015-06-20 21:57:09 +03:00
65eeac16e8
fix Wire::pins compatibility ( #167 )
2015-05-05 13:27:28 +03:00
f008806118
revert Wire::pins, mark as deprecated
2015-05-04 11:08:07 +08:00
915eb45366
dumb me
2015-05-03 18:06:46 +03:00
fbec557ddb
Importing my changes
2015-04-30 20:48:50 +03:00
79e0aa361a
Update maintainer info
2015-03-27 12:18:06 +03:00
ee35484577
Move i2c files into core, fix some issues with i2c
2015-01-21 04:13:18 +03:00
9ba2fcd29f
More license headers
2014-12-19 11:16:28 +03:00
d076e9e322
Remove i2c.c
...
replaced with i2c.cpp
2014-12-18 18:46:45 +03:00
77af5da58f
Clean up ets_printf declarations
2014-12-18 18:45:22 +03:00
2521c1e907
Wire library with i2c master support
2014-12-09 10:11:42 +03:00