EF04001 Octopus Tilt Sensor
Connect this tilt sensor to P1 port on OCTOPUS:BIT.
You can see the whole program from the link here: https://makecode.microbit.org/_FUYC4RYMW9Xk
Or you can download the program from the page below.
Rotate the sensor, micro:bit will display a heart or rectangle separately under different status.
Please visit our wiki page for more info about this product. It will be appreciated if you can help us improve the documents, add more demo code or tutorials.