# I2C between a esp32 and a Micro:bit

**URL:** <https://forum.makecode.com/t/i2c-between-a-esp32-and-a-micro-bit/19963>\
**Category:** micro:bit\
**Created:** [May 15, 2023, 4:30pm UTC](https://forum.makecode.com/t/i2c-between-a-esp32-and-a-micro-bit/19963 "2023-05-15T16:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitsuperboy](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mitsuperboy](https://forum.makecode.com/u/mitsuperboy)\
**Post date:** [May 15, 2023, 4:30pm UTC](https://forum.makecode.com/t/i2c-between-a-esp32-and-a-micro-bit/19963/1 "2023-05-15T16:30:35Z")

</div>

Hi

I’m not a programmer and want to use an esp32 with ESPALEXA and NTP clock. Then I would like to talk backwards and forwards with a Micro:bit using I2C. So that I can use makecode or microblocks on the Micro:bit to talk with bluetooth between the micro:bit and other micro:bits. Could someone help me with some simple code to allow bi directional comms between the esp32 and Micro:bit. If you can put some comments in the code explaining what it’s doing, that would be helpful too.

Any help is appreciated

Tim

---

<div class="post-metadata">

**Author:** ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Post date:** [January 2, 2024, 5:51pm UTC](https://forum.makecode.com/t/i2c-between-a-esp32-and-a-micro-bit/19963/2 "2024-01-02T17:51:28Z")

</div>

Should work if both of them use the same voltage and with two pull up resisters.
