扬声器发声
摘要:
#include <sys/io.h>#include <unistd.h>void play(unsigned int* freq, unsigned int* delay);int main(){ int i; unsigned int freq_alert[]={ 262,294,262,294,0}; unsigned int time_alert[]={ 12,12,12,12}; for(i = 0; i < 1; i++) { play(freq_alert, time_alert); } return 0;}void play(unsigned i 阅读全文
posted @ 2012-08-25 16:22 小风儿_xf 阅读(132) 评论(0) 推荐(0) 编辑