Skip to content

Commit a7822cf

Browse files
Create README.md
1 parent 5755dde commit a7822cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ArduinoCore-avr
2+
The Official Arduino AVR core
3+
# Arduino AVR I2C library timeout
4+
These two files in this submission implement timeout for I2C operations in AVR architecture. During streaming sensor data from MATLAB it has been observed that AVR based Arduino boards may get stuck in the I2C read or write operation especially if there is a loose connection between the hardware and the I2C device.
5+
6+
# Installation
7+
1. Navigate to libraries -> Wire -> src -> utility
8+
2. Download twi.c and twi.h
9+
3. Execute the following command in MATLAB Command Window.
10+
>> fullfile(matlabshared.supportpkg.getSupportPackageRoot, '3P.instrset', 'arduinoide.instrset', 'arduino-1.8.1', 'hardware', 'arduino', 'avr', 'libraries', 'Wire', 'src', 'utility')
11+
12+
This will return a directory. Navigate to that directory.
13+
4. Replace twi.c and twi.h files with the downloaded files.
14+
5. Flash the server on Arduino from MATLAB.

0 commit comments

Comments
 (0)