3 Commits

Author SHA1 Message Date
andrea
6e5fc8ea10 change digital pins to avoid collisions with pin13 for L Led on the board
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
Arduino Pong CD / release (push) Has been cancelled
2026-03-15 22:43:00 +01:00
andrea
28f029ce03 update ci.yml with new libs structure
Some checks failed
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 21:15:49 +01:00
andrea
cb42a45aa7 move all libs into src
Some checks failed
Arduino Pong CI / build (macos-latest) (push) Has been cancelled
Arduino Pong CI / build (ubuntu-latest) (push) Has been cancelled
Arduino Pong CI / build (windows-latest) (push) Has been cancelled
2026-03-15 21:14:04 +01:00
9 changed files with 10 additions and 10 deletions

View File

@@ -7,8 +7,8 @@ on:
- 'arduino_pong.ino' - 'arduino_pong.ino'
- 'Makefile' - 'Makefile'
- '.github/workflows/ci.yml' - '.github/workflows/ci.yml'
- '*.cpp' - 'src/*.cpp'
- '*.h' - 'src/*.h'
jobs: jobs:
build: build:

View File

@@ -1,9 +1,9 @@
#include "Arduino_LED_Matrix.h" #include "Arduino_LED_Matrix.h"
#include "config.h" #include "src/config.h"
#include "pong_render.h" #include "src/pong_render.h"
#include "pong_player.h" #include "src/pong_player.h"
#include "pong_ball.h" #include "src/pong_ball.h"
// create LED matrix object // create LED matrix object
ArduinoLEDMatrix matrix; ArduinoLEDMatrix matrix;

View File

@@ -1,7 +1,7 @@
#define P1_BTN_UP 13 #define P1_BTN_UP 12
#define P1_BTN_BOTTOM 12 #define P1_BTN_BOTTOM 11
#define P2_BTN_UP 11 #define P2_BTN_UP 10
#define P2_BTN_BOTTOM 10 #define P2_BTN_BOTTOM 9
#define MATRIX_WIDTH 12 #define MATRIX_WIDTH 12
#define MATRIX_HEIGHT 8 #define MATRIX_HEIGHT 8