Generating geomantic figures with Micro:bit
So, I did talk about geomancy before and how many different ways there are to generate the figures, so let's look at the modern one. BBC Micro:bit is a pocket-sized computer that is perfect for getting introduced into hardware programming. You simply buy the little bugger, connect it to your computer, and then go to https://makecode.microbit.org/, there you can go through the tutorials, make your code, and download it to the Micro:bit. There are also a ton of prepared projects for you including automated plant watering, making RC models, etc.
But enough with the unpaid advertisement for the little bugger. You can also use it to generate geomantic figures. Here's what the use-case look like:
Not bad, right? This loud noise detection is a functionality of Micro:bit V2, if you got the first version, you can use either the buttons or you can code the Micro:bit to detect shaking, etc.
And this is what the code looks like in JavaScript:
Comments
Post a Comment