baseline features - a little buggy

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
robbiehuey
Date:
Sat Apr 10 02:08:02 2021 +0000
Revision:
2:cf4e61c051a4
Parent:
0:95264f964374
hi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DCchico 0:95264f964374 1 #ifndef HARDWARE_H
DCchico 0:95264f964374 2 #define HARDWARE_H
DCchico 0:95264f964374 3
DCchico 0:95264f964374 4 /**
DCchico 0:95264f964374 5 * Structure that represents all the inputs to the game.
DCchico 0:95264f964374 6 * If additional hardware is added, new elements should be added to this struct.
DCchico 0:95264f964374 7 */
DCchico 0:95264f964374 8 struct GameInputs {
DCchico 0:95264f964374 9 int b1, b2, b3; // Button presses
DCchico 0:95264f964374 10 double ax, ay, az; // Accelerometer readings
DCchico 0:95264f964374 11 };
DCchico 0:95264f964374 12
DCchico 0:95264f964374 13 /**
DCchico 0:95264f964374 14 * Initialize all the hardware.
DCchico 0:95264f964374 15 */
DCchico 0:95264f964374 16 int hardware_init();
DCchico 0:95264f964374 17
DCchico 0:95264f964374 18 /**
DCchico 0:95264f964374 19 * Read all the user inputs.
DCchico 0:95264f964374 20 * This is all input hardware interaction should happen.
DCchico 0:95264f964374 21 * Returns a GameInputs struct that has all the inputs recorded.
DCchico 0:95264f964374 22 * This GameInputs is used elsewhere to compute the game update.
DCchico 0:95264f964374 23 */
DCchico 0:95264f964374 24 GameInputs read_inputs();
DCchico 0:95264f964374 25
DCchico 0:95264f964374 26 #endif // HARDWARE_H