Igra memorije sa svijetlećim diodama ; LED Based Memory Game
Sveučilište Josipa Jurja Strossmayera u Osijeku. Fakultet elektrotehnike, računarstva i informacijskih tehnologija Osijek. Zavod za računalno inženjerstvo i automatiku. Katedra za računalno inženjerstvo. ; Josip Juraj Strossmayer University of Osijek. Faculty of Electrical Engineering, Computer Science and Information Technology Osijek. Department of Computer Engineering and Automation. Chair of Computer Engineering., 2023
Online
Hochschulschrift
Zugriff:
Tema ovog završnog rada je izrada igre pamćenja sa svijetlećom diodom na mikroupravljačkoj platformi Arduino. Korišten je specifično model Arduino Pro Micro, a funkcionalnost je isprogramirana u razvojnom okruženju Arduino IDE. Programski kôd se sastoji od četiri glavna dijela: inicijalizacije biblioteka i globalnih varijabli, korisnički definiranih funkcija, funkcije setup() i funkcije loop(). Na početku igre dioda svijetli žutom bojom, nakon čega pritiskom bilo kojeg tipkala igra započinje te se prikazuju tri nasumično izabrane boje. Pri točnom unosu tih boja istim redoslijedom krug završava, pri čemu se u niz dodaje nova nasumično izabrana boja te započinje novi krug. Igra traje dok jedna od boja ne bude nepravilno unesena ili dok veličina niza boja ne prijeđe 100 (u teoriji bi pravilnim unosom boja igra trebala trajati beskonačno dugo, ali zbog praktičnih razloga potrebno je imati unaprijed definiranu maksimalnu veličinu niza boja). Testiranjem igre utvrđeno je da nema pogrešaka u radu, što znači da je ostvareno potpuna funkcionalnost. ; The topic of this bachelor thesis is creating a memory game with a LED diode on the Arduino microcontroller platform. The model which was used is specifically Arduino Pro Micro, and the game was programmed and compiled in the Arduino IDE development environment. The code consists of four main parts: library inclusions and global variables, user defined functions, the setup() function and the loop() function. In the beginning the diode lights up yellow, after which pressing any button stars the game and shows the sequence of three randomly generated colours. The correct input of these colours ends the round and a new randomly generated colour is added to the sequence before the next round begins. The game ends once there is an incorrect input or the sequence size reaches 100 (theoretically, the game should be endless if inputs are correct, but for practical reasons there has to be a predefined maximum of the size of the sequence). Testing the game was successful and no bugs ...
Titel: |
Igra memorije sa svijetlećim diodama ; LED Based Memory Game
|
---|---|
Autor/in / Beteiligte Person: | Pećar, Vjekoslav ; Matić, Tomislav |
Link: | |
Veröffentlichung: | Sveučilište Josipa Jurja Strossmayera u Osijeku. Fakultet elektrotehnike, računarstva i informacijskih tehnologija Osijek. Zavod za računalno inženjerstvo i automatiku. Katedra za računalno inženjerstvo. ; Josip Juraj Strossmayer University of Osijek. Faculty of Electrical Engineering, Computer Science and Information Technology Osijek. Department of Computer Engineering and Automation. Chair of Computer Engineering., 2023 |
Medientyp: | Hochschulschrift |
Schlagwort: |
|
Sonstiges: |
|