Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
Diff: GameRobotRic.cpp
- Revision:
- 6:8bbdb70bc11c
- Parent:
- 5:0b0651ac7832
- Child:
- 9:fa7e7b37b632
--- a/GameRobotRic.cpp Sat Jun 08 14:40:47 2013 +0000 +++ b/GameRobotRic.cpp Sat Jun 08 15:50:38 2013 +0000 @@ -49,9 +49,11 @@ /*****************/ // This NEVER exits. void GameRobotRic::Play( void ) { -#ifdef CHATTY - pc.puts( "Program has restarted!\r\n" ); -#endif + // Change baud rate on PC serial link. + pc.baud( 115200 ); + #ifdef CHATTY + pc.puts( "Program has restarted!\r\n" ); + #endif // Make a digital output for use as the Gameduino chip select pin. Deselect it. DigitalOut gameduinoCS( p8 ); gameduinoCS = 1;