Chinese menu MP3 song selector based on SC95F8616 (3)

Publisher:technology78Latest update time:2020-08-08 Source: 51heiKeywords:SC95F8616 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In order to select songs to play in the form of a playlist, this task can be accomplished through the OLED screen. Because the display screen uses the I2C interface, it can effectively save IO port resources. In addition, the display screen is wider than the usual OLED, and it is also easy to display the song name.

5.OLED screen display and menu selection

1) Complete the definition macros for 3 constant lights

1.jpg

2) Add relevant display functions

2.jpg


3) Complete the program flow modification as shown in Figure 23, and then regenerate the code. Due to the limitations of the compiler, the development process with EasyCode Magic Box has been completed. Later we will use KEIL to complete the subsequent processing.

3.jpg

Figure 23 Program flow


4) Use Keil to open the generated project file, and then modify the compilation mode according to Figure 24.

5) Reference the font header file in the program header

#include"codetab.h"

4.jpg

Figure 24 Modify the Keil compilation mode


5) Modify the main program content as shown in Figure 25, and then recompile. The compilation result is shown in Figure 26.

5.jpg

Figure 25 Main program content


6.jpg

Figure 26 Compilation results


6. Overall functional verification

When the OLED screen, MP3 player module and soft keys are connected, pressing K4, K1, K2, and K3 in sequence can realize song selection, play, stop and volume adjustment. The effects are shown in Figures 27 to 31.

7.jpg

Figure 27 Power-on effect


8.jpg 9.jpg


Keywords:SC95F8616 Reference address:Chinese menu MP3 song selector based on SC95F8616 (3)

Previous article:Digital frequency meter based on 51 single chip microcomputer
Next article:STC15 series MCU RS-485 communication routine (with CRC check)

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
502 Bad Gateway

502 Bad Gateway


openresty
Guess you like
    502 Bad Gateway

    502 Bad Gateway


    openresty

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号