f
Dependencies: mbed 4DGL-uLCD-SE MMA8452
Diff: hardware.cpp
- Revision:
- 5:077b66dfe296
- Parent:
- 0:8e3b9bb1084a
- Child:
- 6:453dc852ac0f
diff -r 0c0940591fb1 -r 077b66dfe296 hardware.cpp --- a/hardware.cpp Fri Mar 11 14:11:58 2022 +0000 +++ b/hardware.cpp Mon Mar 14 23:38:03 2022 +0000 @@ -25,13 +25,24 @@ // properly. Do that here. int hardware_init() { - + // Crank up the speed + uLCD.baudrate(3000000); + pc.baud(115200); + + //Initialize pushbuttons + button1.mode(PullUp); + button2.mode(PullUp); + button3.mode(PullUp); + + return ERROR_NONE; } /* * This function reads the values of the push buttons and the -* accelerometer +* accelerometer. You need to add code to complete its implementation. */ GameInputs read_inputs() { - + GameInputs in; + return in; } +