ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18zc2

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Touch Class Reference

Touch Class Reference

Touch Class. More...

#include <Touch.h>

Public Member Functions

void init (int Board_width, int Board_length, int bullet_size, int speed, N5110 &lcd)
 initialise board and bullet data
void reading (Gamepad &pad)
 reading gamepad control
void update (Gamepad &pad, N5110 &lcd)
 updating
void draw (N5110 &lcd)
 drawing

Data Fields

int _leds
 led number

Detailed Description

Touch Class.

Author:
Chen Zirui, University of Leeds Interatcion between board and bullet and all boundaries from top left right and bottom
Date:
May 2020

Definition at line 17 of file Touch.h.


Member Function Documentation

void draw ( N5110 lcd )

drawing

Definition at line 25 of file Touch.cpp.

void init ( int  Board_width,
int  Board_length,
int  bullet_size,
int  speed,
N5110 lcd 
)

initialise board and bullet data

Definition at line 5 of file Touch.cpp.

void reading ( Gamepad pad )

reading gamepad control

Definition at line 19 of file Touch.cpp.

void update ( Gamepad pad,
N5110 lcd 
)

updating

Definition at line 57 of file Touch.cpp.


Field Documentation

int _leds

led number

Definition at line 30 of file Touch.h.