LaBattleships is a 2 player battleships style game that is played on 2 LaFortuna devices
To play LaBattleships you will need 2 LaFortunas.
Inside laBattleships.h
you wil find:
#define PLAYER 0
Make sure you set one device to PLAYER 0
and the second to PLAYER 1
.
You can compile and flash the firmware then by running make
If you are on linux you may have to use sudo.
The devices need to communicate and they do so via USART. To connect them you will need to connect the following pins as written on the back of the device:
Device 1 | Device 2 |
---|---|
RXD1 | TXD1 |
TXD1 | RXD1 |
XCK1 | XCK1 |
- Peter Dannegger’s - Rotary encoder and switch debouncing
- Steve Gunn’s - Display driver