From b63c61066598da23f69688d6c58464fe36846aa0 Mon Sep 17 00:00:00 2001 From: Zvonimir Rudinski Date: Tue, 28 Apr 2026 19:18:51 +0200 Subject: [PATCH] feat(display): increase col/row number --- README.md | 2 +- include/display.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62eee4b..1e4ae2c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An open-source implementation of the Tamagotchi virtual pet game, designed to ru ## Bill of Materials - Arduino Nano (ATmega328P) - KY-023 Joystick Module -- HD44780 Character LCD +- HD44780 Character LCD (20x4 or 16x2, can be changed in the code) ## Development After cloning the repository, navigate to the project directory and run `make build` to compile the code. To upload the compiled firmware to your Arduino Nano, use `make upload`. diff --git a/include/display.hpp b/include/display.hpp index b6c8929..9a69320 100644 --- a/include/display.hpp +++ b/include/display.hpp @@ -7,7 +7,7 @@ */ class Display { public: - Display(uint8_t addr = 0x27, uint8_t cols = 16, uint8_t rows = 2); + Display(uint8_t addr = 0x27, uint8_t cols = 20, uint8_t rows = 4); void begin(); void drawJoystick(double x, double y, bool pressed);