feat(display): increase col/row number
This commit is contained in:
@@ -5,7 +5,7 @@ An open-source implementation of the Tamagotchi virtual pet game, designed to ru
|
|||||||
## Bill of Materials
|
## Bill of Materials
|
||||||
- Arduino Nano (ATmega328P)
|
- Arduino Nano (ATmega328P)
|
||||||
- KY-023 Joystick Module
|
- KY-023 Joystick Module
|
||||||
- HD44780 Character LCD
|
- HD44780 Character LCD (20x4 or 16x2, can be changed in the code)
|
||||||
|
|
||||||
## Development
|
## 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`.
|
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`.
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
class Display {
|
class Display {
|
||||||
public:
|
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 begin();
|
||||||
void drawJoystick(double x, double y, bool pressed);
|
void drawJoystick(double x, double y, bool pressed);
|
||||||
|
|||||||
Reference in New Issue
Block a user