Ardugotchi banner

Ardugotchi

3 devlogs
4h 42m 57s

A Tamagotchi made with an Arduino

Loading README...

Dumi

TL:DR: Implemented dynamic command handling and pet care. Next step is hooking some LEDs, buttons and an LCD to stop using the serial console for everything

I implemented command handling in a way I didn’t think was possible before. Initially I was planning to just make a switch statement to handle commands but then I had a stroke of genius and decided to try and implement a dynamic way to store functions in a command:function kind of way. I achieved that with a struct, which I only knew about from lessons about pointers in school and all I did was basically copy-paste code, so I didn’t really know how to use it (until now).
I also created a way to actually take care of the pet. Now every time you feed it, its hunger will go down and when you play with it its happiness will go up.
Next I’m planning to maybe use an LCD, some LEDs and some buttons to stop using the serial console. I’d much rather use an OLED but it hasn’t arrived yet :(

Attachment
Attachment
Attachment
0
Dumi

Set up basic pet stats and updates

Attachment
0
Dumi

Set up the project and learned about serial input for future command parsing

Attachment
0