Commit Graph
283 Commits
Author SHA1 Message Date
aditya 4d19dfb747 Add Wire.setWireTimeout to avoid I2C bus hangs (closes #288)
If the I2C bus stops responding mid-transaction (noise, the display
becomes disconnected, etc.), the underlying Wire library spins in
an indefinite loop and the host MCU effectively hangs. The Arduino
AVR core fixed this in ArduinoCore-avr@deea929 by exposing
setWireTimeout(); cores that implement it define WIRE_HAS_TIMEOUT
so callers can detect the feature at compile time.

Use that detection: when periphBegin owns the wire->begin() call,
follow it with a 25 ms timeout + reset on timeout. We only touch
Wire's configuration when we performed the begin() ourselves; if
the caller managed Wire externally, leave their configuration
untouched.

No behavioural change on cores without WIRE_HAS_TIMEOUT (the entire
block is compiled out).
2026-05-22 17:34:40 +05:30
Tyeth GundryandGitHub 74cc197f48 Bump version to 2.5.16 2.5.16 2025-12-05 14:38:14 +00:00
Tyeth GundryandGitHub cf89132f67 Merge pull request #299 from mikeysklar/wait-for-display
wait for display
2025-12-05 14:37:54 +00:00
Mikey Sklar 75f9703a79 wait for display
500ms delay on startup for i2c displays. The Feather ESP32-C6 required this and I suspect a few other boards.
2025-11-18 15:00:48 -08:00
Tyeth GundryandGitHub 03c96dba96 Merge pull request #291 from JChristensen/dev
Compatibility with RP2350 when using RISC-V cores.
2.5.15
2025-06-24 17:34:02 +01:00
Tyeth GundryandGitHub d64ad231f4 Merge pull request #292 from tyeth/add-64x32-support-2025
Add 64x32 support 2025
2025-06-24 17:22:27 +01:00
Tyeth GundryandGitHub f3fafb60a1 Merge branch 'master' into add-64x32-support-2025 2025-06-24 17:22:08 +01:00
Tyeth Gundry fe638646c3 Bump library.properties to version 2.5.15 2025-06-24 16:09:27 +00:00
Tyeth Gundry c488611188 formatting 2025-06-24 15:59:13 +00:00
Tyeth Gundry 6b283a1839 drop unnecessary comment 2025-06-24 15:58:33 +00:00
JChristensen 1efe7b8c22 Compatibility with RP2350 when using RISC-V cores. 2025-06-19 16:49:49 -04:00
Tyeth GundryandGitHub dba989ad63 Update library.properties - bump version to 2.5.14 2.5.14 2025-05-09 12:27:04 +01:00
Limor "Ladyada" FriedandGitHub 83ed59e8d3 Merge pull request #289 from NickIOT72/master
Add compatibilty with CH32V203 devices
2025-05-03 10:52:34 -04:00
NickIOT72 7a21306b53 verified clang format on header file 2025-05-02 19:08:05 -04:00
NickIOT72 f34211c3d2 verified clang format 2025-05-02 18:13:31 -04:00
NickIOT72 f25af300ab Adafruit_SSD1306: added CH32V20X macro (line 53 on Adafruit_SSD1306.cpp); added compatibilty with CH32 RISC-V mcu family (line 55 on README.md); added compatibility with CH32V203 device (line 66 on README.md) 2025-05-02 16:32:31 -04:00
PreciousRoy0 97afc0362b Add 64x32 I2C example sketch 2025-01-01 15:53:29 +01:00
PreciousRoy0 18c7f13ddd Add 64x32 OLED display support 2025-01-01 15:50:38 +01:00
Tyeth GundryandGitHub 78d6a130b2 Update library.properties - bump version to 2.5.13 2.5.13 2024-10-29 22:03:25 +00:00
Limor "Ladyada" FriedandGitHub ea12e7df70 Merge pull request #258 from gabrielcsapo/master
bug: ARDUINO_ARCH_RP2040 does not include the right pgmspace header
2024-10-28 10:30:32 -04:00
Limor "Ladyada" FriedandGitHub 00fa0bdbca Merge pull request #273 from fabiopjve/patch-1
Add support for Renesas RL78
2024-10-28 10:30:03 -04:00
Tyeth GundryandGitHub c95c1c47d6 Update library.properties 2.5.12 2024-10-09 01:45:25 +01:00
Limor "Ladyada" FriedandGitHub 16ee8a2c29 Merge pull request #266 from RTduino-libraries/master
add ARDUINO_ARCH_RTTHREAD to support RT-Thread
2024-10-07 09:49:58 -04:00
Meco Man 95fef51c89 add ARDUINO_ARCH_RTTHREAD to support RT-Thread 2024-10-06 12:06:40 -04:00
Tyeth GundryandGitHub 14a4563e10 Update library.properties - bump version to 2.5.11 2.5.11 2024-07-30 17:18:46 +01:00
Limor "Ladyada" FriedandGitHub 2196a97447 Merge pull request #276 from makermelissa/master
Fix example for RP2040 Feather
2024-07-24 11:46:33 -04:00
Melissa LeBlanc-Williams 4ca34506f1 Fix example for RP2040 Feather 2024-07-24 08:29:46 -07:00
Fábio PereiraandGitHub 8a95baeced Add support to Renesas RL78
Compiling this library without this change results in a compile error because util/delay.h does not exist on RL78
2024-06-20 21:04:16 -04:00
Tyeth GundryandGitHub 5fa3388757 Update library.properties - bump version to 2.5.10 2.5.10 2024-05-01 16:11:24 +01:00
ladyada 1d52453e3b add c6 2024-04-23 15:21:49 -04:00
Tyeth GundryandGitHub 7a4d33ef04 Merge pull request #270 from tyeth/bump-version-2023-11-14-20-33-27
Update version number to 2.5.9
2.5.9
2023-11-15 12:58:05 +00:00
Tyeth Gundry d8acdafbdf Bump version number to 2.5.9 2023-11-14 20:33:28 +00:00
dherrada 36b0655f5c Update CI action versions 2.5.8 2023-05-12 11:24:07 -04:00
Gabriel Csapo 6ec47b6f1c bug: ARDUINO_ARCH_RP2040 does not include the right pgmspace header 2022-12-30 20:42:33 -08:00
Eva HerradaandGitHub 88711efc3e Bump to 2.5.7 2.5.7 2022-08-03 16:21:34 -04:00
Limor "Ladyada" FriedandGitHub 1dcc8b5efa Merge pull request #246 from BobbyIndustries/master
Added ESP-IDF component files
2022-08-01 17:38:27 -04:00
LayerDEandGitHub 2f6eb1c8fa Update CMakeLists.txt 2022-07-28 02:23:40 +02:00
LayerDEandGitHub c9eb7d3b12 Add files via upload 2022-07-28 02:08:33 +02:00
Eva HerradaandGitHub 33327d02a4 Bump to 2.5.6 2.5.6 2022-06-29 13:16:36 -04:00
Eva HerradaandGitHub 46512179c6 Bump to 2.5.5 2022-06-29 13:11:19 -04:00
Limor "Ladyada" FriedandGitHub ca3a261c95 Merge pull request #244 from waynepiekarski/master
Fix up error: declaration of 'spi' shadows a member
2022-06-28 17:26:41 -04:00
Wayne Piekarski 19b6a36f3b Fix up -Wshadow "error: declaration of 'spi' shadows a member of 'Adafruit_SSD1306'" 2022-06-22 10:37:07 -07:00
Eva HerradaandGitHub 4b929f1d6f Bump to 2.5.4 2.5.4 2022-06-16 17:36:28 -04:00
Limor "Ladyada" FriedandGitHub 327192a725 Merge pull request #243 from adafruit/no_default_rst
no default reset for i2c
2022-06-16 14:04:21 -04:00
lady ada 30b8f303c9 no default reset for i2c 2022-06-16 10:42:17 -04:00
Eva HerradaandGitHub 673fc5d974 Bump to 2.5.3 2.5.3 2022-04-04 14:59:48 -04:00
Carter NelsonandGitHub 9021956414 Merge pull request #241 from caternuson/feather_rp2040
OLED FeatherWing example update for Feather RP2040
2022-04-01 07:34:42 -07:00
caternuson fff9954417 example update for feather rp2040 2022-03-31 16:29:43 -07:00
Carter NelsonandGitHub b4ac182431 Update library.properties 2.5.2 2022-03-31 14:56:01 -07:00
Carter NelsonandGitHub 03dd34dd6f Merge pull request #240 from caternuson/iss239
Update for RP2040
2022-03-31 14:55:48 -07:00