Skip to content

Commit ed394f0

Browse files
committed
Add I2C support
1 parent edf3168 commit ed394f0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PortentaBreakoutCarrier.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2929
#include "Arduino.h"
3030
#include "pins_arduino.h"
3131
#include "mbed.h"
32+
#include "Wire.h"
3233

3334
#define LAST_ARDUINO_PIN_NUMBER LEDB + 1
3435
typedef enum {
@@ -188,6 +189,14 @@ class BreakoutCarrierClass {
188189
}
189190
return -1;
190191
}
192+
MbedI2C I2C_0;
193+
MbedI2C I2C_1;
194+
MbedI2C I2C_2;
195+
BreakoutCarrierClass() : I2C_0(PH_8,PH_7),
196+
I2C_1(PB_7,PB_6),
197+
I2C_2(PH_12,PH_11)
198+
{
199+
}
191200
};
192201

193202
BreakoutCarrierClass Breakout;

0 commit comments

Comments
 (0)