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

MicroPython how to DIY the beating heart effect

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

Share

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

This article mainly introduces "how MicroPython DIY beating heart effect". In daily operation, I believe many people have doubts about how MicroPython DIY beating heart effect. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "MicroPython how DIY beating heart effect"! Next, please follow the editor to study!

TurnipBit development board is a MicroPython development board made by TurnipSmart, which is based on nrf51822 chip as the main control chip, MKL26Z128VFM4 chip as the side-load auxiliary chip, on-board 5*5LED lamp, on-board acceleration sensor lamp, on-board magnetic sensor lamp, and supports graphics programming and MicroPython code programming control of high intelligent chip development board.

To ensure that the majority of enthusiasts zero basic learning single-chip microcomputer.

The on-board LED display screen is used to display the beating of the small heart, and the return data of the on-board temperature detection is used as the basis for the beating frequency of the heart. Let's talk about the practice directly.

Before we talk about the practice, let's take a look at the picture and see the effect.

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.

two。 Select the required splicing control in the block selection area on the left side of the interface

3. Select the repeated spelling in the [loop] block

4. Select the [true] insert in the [logical] block

5. Splicing [repetition] when spelling and [true] insertion

6. Select [delay spelling] in the TurnipBit block

7. Set the variable "wendu" to 1300

8. Read the degree of [temperature insert]

9. The current delay time is calculated according to the following formula: wendu- ([temperature insertion]-25) * 150, and this value is constantly scanned and set to the parameter of [delay spelling]

10. Select [Show Image spell] and [built-in Image insert], put two copies in the programming area, one to display "Heart" and one to display "Heart (small)"

11. Just insert the control according to the following picture.

twelve。 After editing the graphic logic code you want, click download hex in the lower left corner to get the firmware you want.

13. 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:

14. When the firmware copy is complete, TurnipBit automatically executes the new program.

Now that this little heart is beating, look at how hot your position is, and see how fast your little heart is beating.

At this point, the study on "how to DIY beating heart effect of MicroPython" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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