Skip to content

Commit 93bc772

Browse files
authored
Merge pull request #14 from RayNieport/master
Add RP2040 support
2 parents bd516bf + 787838c commit 93bc772

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/SparkFun_External_EEPROM.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
#define I2C_BUFFER_LENGTH_RX SERIAL_BUFFER_SIZE //Adafruit Bluefruit nRF52 Boards uses RingBuffer.h
6565
#define I2C_BUFFER_LENGTH_TX SERIAL_BUFFER_SIZE
6666

67+
#elif defined(ARDUINO_ARCH_RP2040)
68+
69+
#define I2C_BUFFER_LENGTH_RX WIRE_BUFFER_SIZE //128 - defined in Wire.h (provided by pico-arduino-compat)
70+
#define I2C_BUFFER_LENGTH_TX WIRE_BUFFER_SIZE
71+
6772
#else
6873

6974
#pragma GCC warning "This platform doesn't have a wire buffer size defined. Defaulting to 32 bytes. Please contribute to this library!"

0 commit comments

Comments
 (0)