Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does TurnipBit realize the rolling birthday present?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to achieve a rolling birthday gift in TurnipBit". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope that this article "how to achieve rolling birthday gift in TurnipBit" can help you solve the problem.

Using the 5*5LED dot matrix on the TurnipBit development board to complete the cyclic dynamic display character "Happybirthday", parents can take their children to do it together!

Next, let's talk about the devices needed at present. in fact, the device is very simple, only a TurnipBit development board is needed, because the 5*5LED lattice is an on-board device. These are the lights below!

Next, let's talk about the specific practice in detail, first on the picture, and then talk about the problem of the code.

Attach a video link to show you the results:

Https://v.qq.com/x/page/l05144c799x.html

1. Production process

1. After opening the URL http://turnipbit.tpyboard.com/, click "Editor" in the upper right corner of the interface to enter the graphical editing interface, as shown in the following figure

two。 Select the desired command in the command selection area on the left side of the interface

3. Because you want the LED dot matrix to display the string, you can select a command to display the string. You can see that after the new command is placed in the graphic programming box on the left, the corresponding code statement appears in the MicroPython code display box on the right, as shown below:

3.1 Click "Show" in the selection area of the command on the left

3.2 Select the string output command indicated by the arrow in the display

3.3 Select string output command

4. Because you want to loop, you need to add a loop, as shown in the following figure:

4.1 Click the command to select the "loop" in the area

4.2 add loop commands to the graphics edit box

4.3 the loop needs a loop condition. Here, set the loop condition to the wireless loop, click the command to select the "logic" of the area.

4.4 choose "ture"

4.5 put loop conditions into the judgment interface of loop commands

4.6 by default, the LED light array displays "Hello,World!". We want to say "Happy daylights!" to our friends. We make changes to the output characters

5. After drawing the pattern you want, click download hex in the lower left corner to get the firmware you want.

6. After the Turnipbit is plugged into the computer, a drive letter appears, opens the drive letter, and copies the firmware you just downloaded. When copying the firmware, the yellow light on the board flashes, and the following interface appears on the computer interface:

7. When the firmware copy is complete, Turnipbit automatically executes the new program.

This is the end of the introduction to "how to achieve a rolling birthday present in TurnipBit". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report