The goal of this project is to write a library for a hardware component of my choice, and write this library using the OOP ways that I have learned this period. I had to use my self-made library to communicate with the hardware.
I have also created a tic-tac-toe game with physical buttons that can be used by two players. Buttons 1 to 9 are each linked to a specific coordinate in the grid. After pressing one of the buttons on the keypad, a circle will be drawn at the corresponding coordinate in the grid. Using this game, I can demonstrate my library for the OLED. This library uses hwlib and bmptk. This library is developed to be used with the Arduino Due
I chose the SSD1331 driver that is combined with an RGB OLED screen.
I also used two of the foil 4x4 matrix keypads
Name | Student number | Username |
---|---|---|
Kenny van Doorn | 1789386 | Kennyvandoorn |
git clone https://github.com/Kennyvandoorn/IPASS-Tic-Tac-Due-SSD1331.git
2. Build using the included makefile, or run the run.bat file from your terminal. The included main.cpp shows you how to create pins and objects. You can use the predefined variables to test the OLED and key matrix. The predefined variables allow players to start and play a game of Tic-Tac-Due!
Copyright © Kenny van Doorn (kenny.vandoorn@student.hu.nl), 2021
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
Note: See license file for a detailed description.