This project demonstrates an Arduino-based LCD button counter using the Arduino UNO R4 WiFi and an I²C LCD display. The sketch counts button presses, debounces the input, toggles an LED, and displays the count on a 16x2 LCD.
- Counts button presses and shows the count on a 16x2 LCD.
- Implements reliable button debouncing.
- Toggles an LED state each time the button is pressed.
- Includes robust, native unit tests to verify debounce and counting logic.
- Built using PlatformIO for professional embedded software development.
- Arduino UNO R4 WiFi
- 16x2 LCD Display with I²C backpack
- Pushbutton and LED
- Breadboard and connecting wires
pip install platformio
platformio run -e uno_r4_wifi --target upload
platformio test -e native
- LiquidCrystal_I2C by Marco Schwartz