In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, Xiaobian will bring you about how to DIY a Christmas gift with microbit. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
Christmas is fast approaching again, and this year we can use microbit, do-it-yourself, very fast DIY for a fun Christmas present.
We need to prepare the following materials first:
microbit x 1
microbit adapter x 1
WS2812 16x16 Light Panel x 1
If you want a higher brightness, then you also need an external 5V power supply, you can use mobile power or mobile phone USB charger, as long as the power is enough (5V 1A).
Insert the microbit into the adapter board and connect the WS2812 color screen. You can use any IO, but it is best to avoid multiplexing other functions, such as pin4, pin5, pin11, etc.
Once the hardware is ready, we can start programming. Open Microsoft makecode in your browser at https://makecode. microbit. org. Then create a new program, you can see the following graphical programming interface.
Then click on the gear in the upper right corner and select the second extension from the drop-down menu that pops up. And enter the URL in the search bar: github.com/makecode-extensions/snowflake
Click on the search icon to find the extension we need
Click on it and it will be automatically added to the makecode.
Add the following two modules, and download the program to microbit, you can achieve the snow Christmas tree effect.
You can also customize different styles by modifying parameters to change the amount of snow, snow speed, snow, snowflakes and other effects. You can even replace the Christmas tree in the background with another image. In just a few minutes, you can DIY a fun Christmas gift with a difference.
operation effect
If you don't have microbit, you can also use the ESP8266, which is easier to find and costs less, but requires programming in micropython.
The above is how to use microbit DIY for a Christmas gift shared by everyone. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.