The classic dueling tanks game for mbed.
Dependencies: 4DGL-uLCD-SE DRV2605 EthernetInterface Game_Synchronizer MMA8452 SDFileSystem SparkfunAnalogJoystick mbed-rtos mbed wave_player
Fork of 2035_Tanks_Shell by
main.cpp
- Committer:
- jford38
- Date:
- 2015-10-06
- Revision:
- 0:899c85cd266f
- Child:
- 1:0589ea36661b
File content as of revision 0:899c85cd266f:
// THIS GUY LISTENS AND REPEATS. CLIENT. MASTER.
// (It doesn't make sense, I know.)
#include "mbed.h"
#include "two_player.h"
uLCD_2P uLCD(p28,p27,p26, PLAYER1); // serial tx, serial rx, reset pin;
int main (void) {
pc.printf("I'm alive! Player 1\n");
uLCD.init();
pc.printf("Initialized...\n");
while(1) {
uLCD.set_button_state(1,0,1,0,1);
uLCD.background_color(BLUE);
uLCD.cls();
uLCD.update();
pc.printf("Updated. \n");
wait(1);
pc.printf("\033[2J\033[0;0H");
}
//
//uLCD.line(0,0,200,200,BLACK);
}
