Microcontroller code for Microsoft Hacking STEM Build an Ultrasonic Sensor to Measure Ocean Depths lesson plan adapted for micro:bit.
- Download lesson assets at https://aka.ms/depth-lesson
- Build your Ultrasonic Sensor!
- Open a new project in MakeCode (https://makecode.microbit.org/#editor)
- Go to the JavaScript tab at the top
- Copy all code from ultrasonic.ts into the JavaScript tab
- Press download at the bottom left to generate .hex file
This project is licensed under the MIT open source license, see License. The MIT license allows you to take this project and make awesome things with it! MIT is a very permissive license, but does require you include license and copyright from License.txt in any derivative work for sake of attribution.
Fork away! Let us know what you build!