Mbed Space Invaders
Description
An mbed version of the classic game Space Invaders implemented on the mbed LPC1768 with a navigation switch (joystick), pushbutton, speaker, audio amplifier, SD card reader, and a uLCD display.
Hardware
- mbed LPC1768
- Sparkfun 5-Way Tactile Switch Breakout
- Pushbutton
- Speaker
- Audio Amplifier (Optional)
- SD Card Reader
- uLCD-4DGL
Schematic
Sparkfun 5-Way Tactile Switch Breakout
mbed LPC1768 | Sparkfun 5-Way Tactile Switch Breakout |
---|---|
gnd | - |
p13 | U- up |
p12 | C - center |
p11 | L - left |
p10 | D - down |
p9 | R - right |
Pushbutton
Pulldown pushbutton connected to pin 15.
Speaker
Note: For optional setup, see Speaker mbed wikipage: Speaker Wiki Page
mbed | Speaker |
---|---|
p18 | + |
gnd | - |
SD Card Reader
mbed | SD Card Reader |
---|---|
p8 | CS |
p5 | DI |
Vout | VCC |
p7 | SCK |
Gnd | Gnd |
p6 | D0 |
uLCD_4DGL
mbed | uLCD Header | uLCD Cable |
---|---|---|
5V=VU | 5V | 5V |
Gnd | Gnd | Gnd |
TX=p28 | RX | TX |
RX=p27 | TX | RX |
p29 | Reset | Reset |
Setup for Mbed Space Invaders
Gameplay
Code
Import programMbed Space Invaders
An mbed version of the classic game Space Invaders implemented on the mbed LPC1768 with a navigation switch (joystick), pushbutton, speaker, audio amplifier, SD card reader, and a uLCD display.
Please log in to post comments.