MakeCode Package for I2C HC-SR04 Ultrasonic sensor.

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)

License

MIT

Supported targets

  • for PXT/microbit