What are we going to do?
This is a simple magic trick you can perform to amaze your family and friends! When you move the button caps covers on your mi:pet’s A and B button, you appear to make the buttons really switch over! Awesome!
Now it's your turn!
Now, to be able to perform your magic, you need to assemble the mi:pet button first. Follow this video tutorial:
Once it's assembled, you just need to practice the trick a few times before performing for your friends. Try asking your friends to click the buttons after you have switched the buttons and the trick won’t work for them!
IMPORTANT: if your trick does not work, try changing the magnetic force comparison (60 in my example) by increasing or decreasing 10. For example try 50, 70, 40, 80...
Remember, that as we are using micro:bit’s compass, it will need to be calibrated each time we flash the program or run it for the first time, and this must to be done when the magnet is away.
Now that you have some practice, you can show it to your family and friends. But first, do you think you're able to add some music? The mi:power module that you have assembled has a built-in buzzer, so you can play some tones and melodies, awesome!
You can download the solution to this challenge in this link but don't use unless it's necessary!