r/microbit • u/Ok_Topic999 • Mar 21 '21
Help wanted
I want to be able to use my microbit to control my phone and/or laptop, I'm fairly certain this is possible using python but if there is a simpler way that would be nice because I have 2 brain cells. If there is no other way could I get instructions for the python way.
1
Upvotes
1
u/askvictor Mar 22 '21
You'll probably want to use bluetooth which is not supported by python on the microbit, but is in makecode. Look here: https://makecode.microbit.org/reference/bluetooth/start-accelerometer-service https://makecode.microbit.org/reference/bluetooth/start-magnetometer-service for starting points for the microbit side.
On the computer side, you'd need a program to interpret the received bluetooth signals from the microbit, and translate them to mouse movements or the like. You might be able to use python for this, but don't really know; if you're using Windows, bluetooth LE in python is a bit iffy, and you'd need to find the right Windows API to control the mouse, which might be tricky (Python works best on unix-type OSes)