?? define.h
字號:
#include <pic.h>
#include <string.h>
typedef unsigned char byte;
typedef signed char sbyte;
typedef unsigned int word;
bit ONE_S_F;
bit M_LED_F,stop_f;
// 4 5 6 7 1
// * * * *
const byte music_15[]={0xfa,0x67,0xfb,0x03,0xfb,0x90,0xfc,0x0c,0xfc,0x44,
// 2 3 4 5 6
0xfc,0xac,0xfd,0x09,0xfd,0x34,0xfd,0x82,0xfd,0xc8,
// * * * * *
// 7 1 2 3 4 5
0xfe,0x06,0xfe,0x22,0xfe,0x56,0xfe,0x85,0xfe,0x98,0xfe,0xc1};
//
//音階 C D E F G A B
//簡譜符號 4 5 6 7
// * * * *
//頻率(Hz) 休止 349 392 440 494
//周期(uS) 1433 1276 1136 1012
// 0 1 2 3
//簡譜符號1 1 2 3 4
// * * * *
//簡譜符號 1 2 3 4 5 6 7
//頻率(Hz) 523 587 659 698 784 880 988
//周期(uS) 956 852 759 716 638 568 506
// 4 5 6 7 8 9 A
//簡譜符號1 5 6 7 1 2 3 4
// * * *
// * * * * *
//簡譜符號 1 2 3 4 5
//頻率(Hz) 1046 1175 1318 1397 1568
//周期(uS) 478 426 379 360 319
// B C D E F
// * *
//簡譜符號1 5 6 7 1 2
//
//
// 1/4,2/4,3/4, 1, 5/4,6/4,7/4, 2, 9/4,10/4,11/4, 3, 13/4,14/4,15/4, 4
const byte music_long[]={4, 8, 12, 16, 20, 24,28, 32, 36, 40, 44, 48, 52, 56, 60, 64};
// 0 1 2 3 4 5 6 7 8 9 a b c d e f
//梁祝
const byte M_MUSIC[79]=
{
0x23,0x42,0x50,0x72,0x80,0x50,0x70,0x41,0xb2,0xe0,0xc0,0xb0,0x90,0xb0,0x87,
0x81,0x80,0x90,0x61,0x51,0x42,0x50,0x71,0x81,0x21,0x71,0x50,0x40,0x50,0x70,
0x47,0x92,0xb0,0x61,0x81,0x50,0x70,0x41,0x43,0x20,0x40,0x21,0x40,0x50,0x60,
0x80,0x55,0x40,0x50,0x72,0x80,0xb1,0x91,0x81,0x90,0x80,0x71,0x50,0x40,0x23,
0x73,0x50,0x70,0x50,0x40,0x20,0x40,0x50,0x70,0x46,0x90,0xb0,0x80,0x90,0x80,
0x70,0x61,0x51,0x47
};
const byte M_MUSIC1[100]=
{
0xd0,0xc0,0xd0,0xf0,0xc0,0xd0,0xb0,0xa0,0x90,0x80,0x90,0xb0,0x82,0x70,
0x61,0x91,0x80,0x70,0x60,0x50,0x47,
0x91,0x90,0xb0,0x60,0x80,0x50,0x60,0x80,0x60,0x81,0x43,0xb1,0x91,0xd0,
0xf0,0xc0,0xd0,0xd1,0xb5,0xb2,0xc0,0xd1,0xf0,0xd0,0xc1,0xa1,0x91,0x81,
0x91,0x90,0xb0,0x60,0x80,0x50,0x60,0x80,0x60,0x85,0xb1,0xb0,0x90,0x80,
0x90,0xb0,0xa0,0x91,0x93,0x80,0x90,0xb1,0xb0,0x90,0x80,0x90,0xb0,0xa0,
0x91,0x93,0x80,0x90,0x91,0x90,0xb0,0x80,0x90,0xb0,0xa0,0x92,0xb0,0x81,
0x61,0x81,0x60,0x80,0x50,0x60,0x80,0x70,0x67
};
//繡金匾_序曲
const byte M_MUSIC2[51]=
{
0xd0,0xc0,0xb0,0x90,0xc1,0xb0,0x90,0xb0,0xc0,0xd1,0xd0,0xc1,0xb0,0x93,0x63,
0x61,0xc0,0xb0,0xc1,0xd1,0xb0,0xb0,0x90,0xb0,0xc3,0xd1,0xd0,0xc0,0xb1,0xc1,
0x91,0xd0,0xc0,0xc0,0xb0,0x91,0x61,0xc0,0xb0,0xc1,0xd1,0x91,0x81,0x63,0xc2,
0xd0,0xb0,0x90,0x80,0xb0,0x97
};
#define SOUND RC4 //聲音輸出
byte m_music_H,m_music_L,m_music_long;
byte fre_time,s_reg,n;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -