Home > other >  How to use the buttons control the oled display
How to use the buttons control the oled display

Time:10-02

4 digit number on the OLED display, each digit controlled with the buttons to add and subtract

CodePudding user response:

Will development board A displayed by the content of the communication port to the development board B, and implement the development board B development board displayed on A display value,

CodePudding user response:

Will development board A displayed by the content of the communication port to the development board B, and implement the development board B development board displayed on A display value,

CodePudding user response:

Four variables parameters, the value of the variable to limit between 0 ~ 9, assuming that there are two buttons, a button to decide which a numerical control needs to be changed, another key control shows the change of value from 0 to 9, is more than just becomes 0, so you can form a circle, to be able to achieve the requirement of the display number, hope to help you,

CodePudding user response:

Oled and c printf! With a direct call header files can control display digits, such as do you want to realize the function of the main or by reading the button is pressed (level signal), and then write code to read the signal in order to realize the function of the (select, add and subtract, etc.)
  • Related