[第十課] MP3播放器核心運行
『滾石不生苔』"A rolling stone gathers no moss." ~ Publilius Syrus 最後的最後,還是要一提,嵌入式系統的設計,要保持常動,與時俱進。在 ACCP 的 Github Wiki 說道:『ACCP的核心程式採 狀態機 State Machine 架構方式進行: void loop() { switch (state) { case SLEEP: { //enter sleep state... } case SCAN: { //scan tag in the field ...} case PLAYER: { //MP3 player switch(mode) { case 0: { // Album Loop All playing mode; ...} case 1: { // A-B | Single playing mode; ...} case 2: { // Audio Guide mode; ...} case 3: { // BGM playing mode; ...} case 4: { // Playlist playing Mode; ...} case 5: { // Quiz Game Mode; ...} case 6: { // R...