Skip to content
Snippets Groups Projects
Commit b2642771 authored by Britannio's avatar Britannio
Browse files

Update comments

parent 17c81ab7
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,6 @@
[Pong](https://en.wikipedia.org/wiki/Pong) on an Arducam Pico4ML. This was created by myself as a task for other students to attempt in the [Computer Systems II](https://www.southampton.ac.uk/courses/modules/comp2215) module.
![image](https://user-images.githubusercontent.com/33752528/168276395-1f0a69d1-12d0-4c7f-a20d-d06cf8d60d68.png)
## How to run
......@@ -15,3 +13,5 @@ chmod u+x compile_project.sh
## Acknowledgment
Kudos to [plaaosert](https://github.com/plaaosert/) for porting the display SDK from C++ to C and for creating guides such as [st7735-guide](https://github.com/plaaosert/st7735-guide) and [icm20948-guide](https://github.com/plaaosert/icm20948-guide).
![image](https://user-images.githubusercontent.com/33752528/168276395-1f0a69d1-12d0-4c7f-a20d-d06cf8d60d68.png).
......@@ -8,19 +8,20 @@
#include "pico/multicore.h"
#include "hardware/watchdog.h"
void paintGameOverText();
void startGame();
void restartGame();
// Tasks
bool repaintTask();
bool ballTask();
bool userPaddleTask();
bool aiPaddleTask();
bool accelerometerTask();
bool monitoringTask();
// Painting
void paintBall();
void paintAiPaddle();
void paintUserPaddle();
void paintDivider();
void paintGameOverText();
#define PADDLE_WIDTH 10
#define PADDLE_HEIGHT 30
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment