Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a938adff31 | ||
|
|
1f143520a8 | ||
|
|
cbdfcce354 | ||
|
|
66957b5e19 | ||
|
|
f12af76845 |
8
.github/workflows/cd.yml
vendored
8
.github/workflows/cd.yml
vendored
@@ -5,6 +5,9 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -15,13 +18,12 @@ jobs:
|
|||||||
- name: Install Arduino CLI
|
- name: Install Arduino CLI
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||||
echo "$HOME/bin" >> $GITHUB_PATH
|
echo "./bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install Board Core and Libs
|
- name: Install Board Core and Libs
|
||||||
run: |
|
run: |
|
||||||
arduino-cli core update-index
|
arduino-cli core update-index
|
||||||
arduino-cli core install arduino:renesas_uno
|
arduino-cli core install arduino:renesas_uno
|
||||||
arduino-cli lib install "Arduino_LED_Matrix"
|
|
||||||
|
|
||||||
- name: Build Binary
|
- name: Build Binary
|
||||||
run: make compile
|
run: make compile
|
||||||
@@ -30,6 +32,6 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
build/arduino.renesas_uno.unor4wifi/arduino_pong.ino.bin
|
build/*.bin
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.secrets
|
.secrets
|
||||||
.arduino_cache/
|
.arduino_cache/
|
||||||
bin/
|
bin/
|
||||||
|
build/
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -30,8 +30,13 @@ prepare:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
|
@mkdir -p build
|
||||||
@echo -e "$(GREEN)🛠️ Compiling $(SKETCH)...$(CLEAR)"
|
@echo -e "$(GREEN)🛠️ Compiling $(SKETCH)...$(CLEAR)"
|
||||||
@$(CLI) compile -b $(BOARD) $(SKETCH)
|
@$(CLI) compile -b $(BOARD) --output-dir build $(SKETCH)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@echo -e "$(GREEN)🛠️ Removing build files...$(CLEAR)"
|
||||||
|
@rm -rf build/
|
||||||
|
|
||||||
prepare_and_compile:
|
prepare_and_compile:
|
||||||
make prepare --no-print-directory
|
make prepare --no-print-directory
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
A classic implementation of the Pong game developed specifically for the Arduino UNO R4 WiFi, utilizing its built-in 12×8 LED matrix as the game screen.
|
A classic implementation of the Pong game developed specifically for the Arduino UNO R4 WiFi, utilizing its built-in 12×8 LED matrix as the game screen.
|
||||||
|
|
||||||
[](https://github.com/Dea1993/arduino_pong/actions/workflows/ci.yml)
|
[](https://github.com/Dea1993/arduino_pong/actions/workflows/ci.yml)
|
||||||
|
[](https://github.com/Dea1993/arduino_pong/actions/workflows/cd.yml)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
# 📹 Preview
|
# 📹 Preview
|
||||||
|
|||||||
Reference in New Issue
Block a user