• 大小: 4KB
    文件类型: .c
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: 其他
  • 标签: msp430  

资源简介

学习msp430单片机的蜂鸣器开发源代码

资源截图

代码片段和文件信息

/**程序功能:MCU控制蜂鸣器演奏歌曲《祝你平安》
*********************************************/
#include  
typedef unsigned char uchar;
const unsigned char SONG[]={   
  0x260x200x200x200x200x200x260x100x20 
  0x100x200x800x260x200x300x200x300x20  
  0x390x100x300x100x300x800x260x00x20  
  0x200x200x200x1c0x200x200x800x2b0x20 
  0x260x200x200x200x2b0x100x260x100x2b  
  0x800x260x200x300x200x300x200x390x10 
  0x260x100x260x600x400x100x390x100x26  
  0x200x300x200x300x200x390x100x60x10  
  0x260x800x260x200x2b0x100x2b0x100x2b 
  0x200x300x100x390x100x260x100x2b0x10  
  0x2b0x200x2b0x400x400x200x200x100x20   
  0x100x2b0x100x260x300x300x800x180x20  
  0x180x200x260x200x200

评论

共有 条评论