This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
void render_matrix(byte frame[MATRIX_HEIGHT][MATRIX_WIDTH], int p1_start, int p2_start, int &need_refresh, int ball_x, int ball_y) {
|
void render_matrix(byte frame[MATRIX_HEIGHT][MATRIX_WIDTH], int p1_start, int p2_start, int &need_refresh, int ball_x, int ball_y) {
|
||||||
@@ -22,5 +21,4 @@ void render_matrix(byte frame[MATRIX_HEIGHT][MATRIX_WIDTH], int p1_start, int p2
|
|||||||
|
|
||||||
// ball coords
|
// ball coords
|
||||||
frame[ball_y][ball_x]= 1;
|
frame[ball_y][ball_x]= 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#ifndef PONG_RENDER_H
|
#ifndef PONG_RENDER_H
|
||||||
#define PONG_RENDER_H
|
#define PONG_RENDER_H
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "Arduino_LED_Matrix.h"
|
#include "Arduino_LED_Matrix.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user