OLED menu based on 51 microcontroller

Yuxian: CSDN content partner, CSDN rising star mentor, rising star creator in the full stack field, 51CTO (Top celebrity + expert blogger), github open source enthusiast (go-zero source code secondary development, game back-end architecture https: //github.com/Peakchen)

Use the 0.96-inch four-pin OLED screen to display menu buttons to realize menu line wrapping, entry and exit, and menu function realization
Function 1: Enter submenu 1: Press different buttons to realize different LED lights ( 4 positions (no limit) are on and off at the same time and the screen displays the serial number of the light.
Function 2: Enter submenu 2: Press the same button to realize the motor's three gear speeds and screen display at the same time. At that time, gear function three: Enter submenu 3: Enter the calculator ◇Press different keys, enter different numbers and operators, and perform calculations while the screen displays
The button pin is P2

Detailed explanation of the principle:
The principle of the OLED menu system based on the 51 microcontroller is to realize the display and interaction of the menu by using the 51 microcontroller to control the OLED screen and buttons. Through programming control, different menu options can be displayed on the OLED screen, and the menu status can be switched and corresponding functions can be performed according to user key input. The menu status and status information of each function are stored in corresponding variables, and the display content of the OLED screen is updated according to different statuses.

Underlying architecture flow chart:
The following figure is a simplified example of the underlying architecture flow chart of an OLED menu system based on 51 microcontroller:

+---------------------+
|                     |
|     51单片机       |
|                     |
|       

Guess you like

Origin blog.csdn.net/feng1790291543/article/details/134980124