Arduino - Button Count - OLED
In this tutorial, we are going to use Arduino:
- Count the number of times a button is pressed
- Display the count number on OLED display.
- Auto vertical and horizontal center align the count number on OLED display.
In this tutorial, the button also is debounced without using delay() function. See Why do we need debouncing?
Or you can buy the following sensor kit:
|DIYables Sensor Kit 30 types, 69 units
This image is created using Fritzing. Click to enlarge image
Arduino Code - Vertical and Horizontal Center Align on OLED
※ NOTE THAT:
The about code automatically horizontal and vertical center aligns the text on OLED display. See How to vertical/horizontal center on OLED for more detail.
We are considering to make the video tutorials. If you think the video tutorials are essential, please subscribe to our YouTube channel to give us motivation for making the videos.