;Р delay(10000000);Р Buzzer_Stop();Р }Р 8Р基于 ARM9 的电子琴设计Р if( key == '4' )Р { freq = 2600;Р Buzzer_Freq_Set( freq ) ;Р delay(10000000);Р Buzzer_Stop();Р }Р if( key == '5' )Р { freq = 2800;Р Buzzer_Freq_Set( freq ) ;Р delay(10000000);Р Buzzer_Stop();Р }Р if( key == '6' )Р { freq = 3100;Р Buzzer_Freq_Set( freq ) ;Р delay(10000000);Р Buzzer_Stop();Р }Р 9Р基于 ARM9 的电子琴设计Р if( key == '7' )Р { freq = 3300;Р Buzzer_Freq_Set( freq ) ;Р delay(10000000);Р Buzzer_Stop();Р }Р if( key == '8' )Р { freq = 3500;Р Buzzer_Freq_Set( freq ) ;Р delay(10000000);Р Buzzer_Stop();Р }Р if( key == 'w' )Р {Р Buzzer_Freq_Set( 2400) ;delay(30000000);Р Buzzer_Freq_Set( 2400) ;delay(30000000);Р Buzzer_Freq_Set( 2600) ;delay(30000000);Р Buzzer_Freq_Set( 2800) ;delay(50000000);Р Buzzer_Freq_Set( 2800) ;delay(30000000);Р 10