資源簡介
本項目包含語音識別和控制,手機遠程控制,音樂播放,講笑話等功能,還可以自行擴展。使用了STM32F103RxT6、LD3320A語音識別芯片、ESP8266、SD卡、繼電器、LED、蜂鳴器、麥克風等,ESP8266只使用了AT指令集,有其他需求可以自行編譯修改,包含電路圖(PDF)。
代碼片段和文件信息
//頭文件
#include?“buzzer.h“
/**
?*?@file???Buzzer_GPIO_Config
?*?@brief??Buzzer燈引腳配置
?*?@param??無
?*?@retval?無
?*/
void?Buzzer_GPIO_Config(void)
{
????//定義一個GPIO_InitTypeDef?類型的結構體
????GPIO_InitTypeDef??GPIO_InitStructure;
????RCC_APB2PeriphClockCmd(BUZZER_GPIO_RCC?ENABLE);?//使能GPIO的外設時鐘
????/*BUZZER*/
????GPIO_InitStructure.GPIO_Pin?=?BUZZER_GPIO_PIN;?//選擇要用的GPIO引腳
????GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;?//設置引腳模式為推免輸出模式
????GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;//設置引腳速度為50MHZ
????GPIO_Init(BUZZER_GPIO_PORT?&GPIO_InitStructure);//調用庫函數,初始化GPIO
????GPIO_ResetBits(BUZZER_GPIO_PORT?BUZZER_GPIO_PIN);
}
void?Buzzer_Toggle(void)
{
BUZZER_GPIO_PORT->ODR?^=?BUZZER_GPIO_PIN;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-03?10:30??STM32-LD3320A\
?????目錄???????????0??2019-06-03?10:30??STM32-LD3320A\.git\
?????文件??????????28??2019-05-13?02:19??STM32-LD3320A\.git\COMMIT_EDITMSG
?????文件?????????293??2019-05-13?02:20??STM32-LD3320A\.git\config
?????文件??????????73??2019-04-14?00:26??STM32-LD3320A\.git\desc
?????文件??????????23??2019-04-14?00:26??STM32-LD3320A\.git\HEAD
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\hooks\
?????文件?????????478??2019-04-14?00:26??STM32-LD3320A\.git\hooks\applypatch-msg.sample
?????文件?????????896??2019-04-14?00:26??STM32-LD3320A\.git\hooks\commit-msg.sample
?????文件????????3327??2019-04-14?00:26??STM32-LD3320A\.git\hooks\fsmonitor-watchman.sample
?????文件?????????189??2019-04-14?00:26??STM32-LD3320A\.git\hooks\post-update.sample
?????文件?????????424??2019-04-14?00:26??STM32-LD3320A\.git\hooks\pre-applypatch.sample
?????文件????????1638??2019-04-14?00:26??STM32-LD3320A\.git\hooks\pre-commit.sample
?????文件????????1348??2019-04-14?00:26??STM32-LD3320A\.git\hooks\pre-push.sample
?????文件????????4898??2019-04-14?00:26??STM32-LD3320A\.git\hooks\pre-reba
?????文件?????????544??2019-04-14?00:26??STM32-LD3320A\.git\hooks\pre-receive.sample
?????文件????????1492??2019-04-14?00:26??STM32-LD3320A\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2019-04-14?00:26??STM32-LD3320A\.git\hooks\update.sample
?????文件???????46426??2019-05-13?02:19??STM32-LD3320A\.git\index
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\info\
?????文件?????????240??2019-04-14?00:26??STM32-LD3320A\.git\info\exclude
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\logs\
?????文件????????1492??2019-05-13?02:19??STM32-LD3320A\.git\logs\HEAD
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\logs\refs\
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\logs\refs\heads\
?????文件????????1492??2019-05-13?02:19??STM32-LD3320A\.git\logs\refs\heads\master
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\logs\refs\remotes\
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\logs\refs\remotes\origin\
?????文件?????????786??2019-05-13?02:20??STM32-LD3320A\.git\logs\refs\remotes\origin\master
?????目錄???????????0??2019-06-03?10:30??STM32-LD3320A\.git\ob
?????目錄???????????0??2019-06-03?10:29??STM32-LD3320A\.git\ob
............此處省略1798個文件信息
評論
共有 條評論