summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/i2c.h')
-rw-r--r--stmhal/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/i2c.h b/stmhal/i2c.h
index 00bb744f0c..d4f08efb75 100644
--- a/stmhal/i2c.h
+++ b/stmhal/i2c.h
@@ -1,3 +1,6 @@
+// use this for OwnAddress1 to configure I2C in master mode
+#define PYB_I2C_MASTER_ADDRESS (0xfe)
+
extern I2C_HandleTypeDef I2CHandle1;
extern I2C_HandleTypeDef I2CHandle2;
extern const mp_obj_type_t pyb_i2c_type;