My first OOP for arduino.

So this is my first Object Oriented Program, and as the name of this blog implies its the point of all of this. Its an ammo counter, where one button starts a countdown, and when released stops it. The next button resets the ammo counter. The counter stops at zero and waits for a reset.

I read the first 5 or 6 chapters of a C++ training book used for uni. I zipped through that in about 2 days. This project took over two weeks of tinkering here and there because of various hardware and pc config issues. The buttons & pullup settings were never in synch, and when they finally were, I was using boolean operators inversely. This took a little putzing around to figure out.

I am pretty happy with the outcome. I would want to make it flashier, but my client wanted it the way it was, so heres a video and the code. Let me know what you think in the comments! Thanks!


Leave a Reply