This library provides a Microsoft Makecode package for the HC-SR04 Ultrasonic sensor with I2C Interface. Make sure the appropriate resistor is bridged for the I2C Interface Mode.
The connection of the I2C Interface is as follow.
- TRIG (SCL)
- ECHO (SDA)
MIT
- for PXT/microbit