objective:This project aims to develop a two player bouncing ball game on a NOKIA 6100 lcd screen using STR 912 board. In this game there is bouncing ball and two bats which can be controlled by using joystick and poterntiometer by two players.
STR 912 board details: STR-E912 is low cost development board for the new STR912 ARM966E-S microcontroller from ST Microelectronics. With 512KB internal flash, 96KB internal RAM, USB, CAN, RS232, 10/100 Ethernet, SD/MMC card connector, Audio In/Out, TFT color LCD, joystick for menu navigation, connectors for the external memory bus, JTAG, TRACE this board allows all STR912 features to be explored.
NOKIA LCD details
The important specifications for this display are as follows: 132 x 132 pixels 12-bit color rendition (4 bits red, 4-bits green, 4-bits blue) 3.3 volts 9-bit SPI serial interface (clock/data signals) LCD Display Orientation The Nokia 6100 display has 132 x 132 pixels; each one with 12-bit color (4 bits RED, 4 bits GREEN and 4 bits BLUE).
The Nokia 6100 uses a two-wire serial SPI interface (clock and data). The ARM7
microcontroller SPI peripheral generates the clock and data signals and the display acts solely as a slave device. Olimex elected to not implement the MISO0 signal that would allow the ARM microcontroller to read from the LCD display (you could read some identification codes, status, temperature data, etc). Therefore, the display is strictly write-only!
algorithm:
{ main() { update_ball();//really it draws white color on current ball position pollEvents();// poll events such as potentiometer and joystick
// update ball position update_ball();
// collition detection CollitionDetect();// it detects collition on bat or wall
//update screen DrawFrame();//it draws current position of bat and ball
}
} source code: Source code is available in moodle
Recent Comments