Random-Number Ordering
Random Number Ordering using Bluetooth Controller
Overview
This project is a simple game that uses uLCD-144-G2 128x128 LCD and Adafruit Bluefruit LE which gives the capability of using a Bluetooth controller. The game comes with Setting that gives the user to choose the difficulty of the game and Help that has a brief introduction about the game.
Game
The Bluetooth controller gives the user the capability of moving in the 4 main directions (up,down,right,left) and by pressing number "1", you can select the underlined selection. The game is 3x3 random number sliding game and the user needs to move the blank box such that all the numbers be in the order from 1 to 9. If you are willing to go back to main menu, press "1" twice. By pressing "1" for the first time, the "Game Over" image will be displayed and by pressing it twice, the main menu will come up. The features that come with it are playing music while playing the game and also images pop up at the end of the game and the images are corresponding to if the user wins the game or stops the game.
Demo
Components
- mbed
- ulcd-144-g2-128-by-128-color-lcd
- Adafruit Bluefruit LE UART Friend - Bluetooth Low Energy (BLE)
- MicroSD Breakout
- Speaker
Hookup Guide
mbed | uLCD | Adafruit Bluetooth LE | MicroSD BreakOut |
---|---|---|---|
VU=5V | 5V | VIN | |
VCC | VOUT | ||
GND | GND | GND, CTS | GND |
TX=P28 | RX | ||
RX=P27 | TX | ||
P30 | RES | ||
CS | |||
P9 | RIX | ||
P10 | TXO | ||
P8 | CS | ||
P5 | DI | ||
P7 | SCK | ||
P6 | DO |
Import programgame
Random-number ordering game controlled via Bluetooth.
Please log in to post comments.