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?
|1||×||Arduino UNO or Genuino UNO|
|1||×||USB 2.0 cable type A/B|
|1||×||SSD1306 I2C OLED Display 128x64|
Image is developed 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.