f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
main.cpp@0:8e3b9bb1084a, 2022-03-10 (annotated)
- Committer:
- lballard9
- Date:
- Thu Mar 10 05:18:13 2022 +0000
- Revision:
- 0:8e3b9bb1084a
- Child:
- 1:d57364f0349f
shell rev b;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lballard9 | 0:8e3b9bb1084a | 1 | //================================================================= |
lballard9 | 0:8e3b9bb1084a | 2 | // The main program file. |
lballard9 | 0:8e3b9bb1084a | 3 | // |
lballard9 | 0:8e3b9bb1084a | 4 | // Copyright 2022 Georgia Tech. All rights reserved. |
lballard9 | 0:8e3b9bb1084a | 5 | // The materials provided by the instructor in this course are for |
lballard9 | 0:8e3b9bb1084a | 6 | // the use of the students currently enrolled in the course. |
lballard9 | 0:8e3b9bb1084a | 7 | // Copyrighted course materials may not be further disseminated. |
lballard9 | 0:8e3b9bb1084a | 8 | // This file must not be made publicly available anywhere. |
lballard9 | 0:8e3b9bb1084a | 9 | //================================================================== |
lballard9 | 0:8e3b9bb1084a | 10 | |
lballard9 | 0:8e3b9bb1084a | 11 | // External libs |
lballard9 | 0:8e3b9bb1084a | 12 | #include <stdlib.h> |
lballard9 | 0:8e3b9bb1084a | 13 | |
lballard9 | 0:8e3b9bb1084a | 14 | // Project includes |
lballard9 | 0:8e3b9bb1084a | 15 | #include "globals.h" |
lballard9 | 0:8e3b9bb1084a | 16 | #include "hardware.h" |
lballard9 | 0:8e3b9bb1084a | 17 | #include "graphics.h" |
lballard9 | 0:8e3b9bb1084a | 18 | #include "keyboard.h" |
lballard9 | 0:8e3b9bb1084a | 19 | // ===User implementations start=== |
lballard9 | 0:8e3b9bb1084a | 20 | |
lballard9 | 0:8e3b9bb1084a | 21 | void set_random_seed(Timer); |
lballard9 | 0:8e3b9bb1084a | 22 | |
lballard9 | 0:8e3b9bb1084a | 23 | /* |
lballard9 | 0:8e3b9bb1084a | 24 | * This function handles the main logic of the game. You should |
lballard9 | 0:8e3b9bb1084a | 25 | * initialize the hardware in this function, make calls to |
lballard9 | 0:8e3b9bb1084a | 26 | * functions that update the keyboard and your guess of |
lballard9 | 0:8e3b9bb1084a | 27 | * the word. |
lballard9 | 0:8e3b9bb1084a | 28 | */ |
lballard9 | 0:8e3b9bb1084a | 29 | int main() |
lballard9 | 0:8e3b9bb1084a | 30 | { |
lballard9 | 0:8e3b9bb1084a | 31 | // ===User implementations end=== |
lballard9 | 0:8e3b9bb1084a | 32 | } |
lballard9 | 0:8e3b9bb1084a | 33 | |
lballard9 | 0:8e3b9bb1084a | 34 | // ===User implementations start=== |
lballard9 | 0:8e3b9bb1084a | 35 | |
lballard9 | 0:8e3b9bb1084a | 36 | /* |
lballard9 | 0:8e3b9bb1084a | 37 | * This function sets the random seed for the game. |
lballard9 | 0:8e3b9bb1084a | 38 | * It also initializes the keyboard. You may choose to |
lballard9 | 0:8e3b9bb1084a | 39 | * put the start screen in here as well. This should be |
lballard9 | 0:8e3b9bb1084a | 40 | * called in the main function above. |
lballard9 | 0:8e3b9bb1084a | 41 | */ |
lballard9 | 0:8e3b9bb1084a | 42 | void set_random_seed(Timer t) { |
lballard9 | 0:8e3b9bb1084a | 43 | |
lballard9 | 0:8e3b9bb1084a | 44 | } |
lballard9 | 0:8e3b9bb1084a | 45 | // ===User implementations end=== |