IoT Ox


Oxford CWM 2017 Microcontroller Lab

You are viewing an older revision! See the latest version

Pong

The pong is a simple single player game which is controlled by the capacitive touch on the FRDM-KL46Z microcontroller. It has a library to use two main functions which are draw and move. The move function is to calculate the location and the velocity of the ball and the paddle. The draw functions is to draw the paddle and the ball while playing the game. The main pong script is to loop those two functions from the library.

singlepong.cpp

singlepong.h


All wikipages