登录
首页 » c » STM32如何用库函数写蜂鸣器程序

STM32如何用库函数写蜂鸣器程序

于 2022-02-24 发布 文件大小:539.77 kB
0 143
下载积分: 2 下载次数: 1

代码说明:

STM32蜂鸣器的应用时最常用的,但是好多人不知道怎么运用库函数来写改程序。所以上传了一段经典代码,供大家参考和学习。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 数据结构课设:三个野人和三个传教士(C实现)
    三个修道士和三个野人过河,船一次最多只能载两个人,在任何时候修道士的人数不能少于野人人数,否则野人会吃掉修道士。找出六个人顺利过河的所有方案。 
    2022-08-13 05:53:10下载
    积分:1
  • -the-poker-game
    本程序利用Card类数组模拟扑克牌,定义3个数组分别表示玩家手中的牌,电脑手中的牌和底牌,用srand((unsigned)time(NULL))产生随机数字,将底牌数组中随机的一项从底牌中移动到其他的数组中,模拟从洗好底牌中抓牌。表示出牌。 单人练习模式中,首先记下一个 1到13之间的随机数字,然后玩家抓牌,当手中的牌的点数恰与记下的随机数字相等,或用手中有的任意两张牌,通过加减乘除四则运算可以凑出该随机数字相等的点数,则停止抓牌并将这一张或两张出出去,随即记下一个新的随机数字,开始下一轮,直道手中的全部牌出完,游戏结束(This procedure using Card class array to simulate playing cards, the definition of the 3 arrays represent the game player cards, computer cards and cards, using srand ((unsigned) time (NULL)) to generate random numbers, random number in the array will be a move to the number of cards from other groups of cards, simulation from the wash hand in. Said. Single practice mode, first recorded random number between 1 to 13 next, and then the game player to draw cards, random number equal when the hand points exactly with the down, or in the hands of some arbitrary two cards, add, subtract, multiply and divide by four operations can make the random number equal points, then stop to draw a card and the card or two cards out, then write a new random number, start the next round, straight hands all the cards out, the end of the game)
    2013-08-19 15:13:48下载
    积分:1
  • la1ji
    呵呵,感觉你电脑经常死机或者越来越卡吗?那是你电脑中垃圾文件,只要运行此文件即可轻松清楚你电脑中的垃圾文件(Oh, I feel your computer crashes frequently or more card? Is that your computer of junk files, as long as you can easily clear run this file to your computer files in the trash)
    2016-05-12 08:02:37下载
    积分:1
  • NRF24L01
    51单片机,下载可直接使用,程序注解详细,不懂可以直接问我
    2022-05-17 22:36:52下载
    积分:1
  • shuzhijifen
    使用WIN-TC编写一个程序,实现数值积分。用复化梯形方法、复化Simpson方法、变步长梯形方法、变步长Simpson方法编程求解积分值。(Using WIN-TC to write a program to achieve numerical integration. Compound trapezoid method used, the complex method of Simpson, variable step trapezoidal method, Simpson variable step method for solving integral value programming.)
    2015-03-10 22:21:31下载
    积分:1
  • mcp4017
    MCP4017 数字电位器 128档(MCP4017 digital potentiometer 128 gear)
    2020-08-17 10:38:23下载
    积分:1
  • 电子密码锁
    单片机课程设计用AT89C51单片机实现电子密码锁,1602显示实现时间可调,密码可以更改,24c01实现断电密码可以存储,程序简洁可更改。方便修改
    2022-02-13 20:15:30下载
    积分:1
  • DateBase
    数据库程序,实现简单的数据库功能,如添加、查找、删除(DateBase sofe)
    2014-12-27 09:44:59下载
    积分:1
  • 串口空闲中断DMA接收
    串口空闲中断DMA接收数据,可以实现串口不定长数据的接收,并给CPU减轻一定负担。
    2022-02-05 14:51:45下载
    积分:1
  • haofushun10
    说明:  属于MATLAB开GUI设计开发的入门参考代码,有注释比较通俗易懂(Belongs to Matlab open GUI design and development of the entry reference code, notes more easy to understand)
    2020-11-25 09:30:28下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载