Merge branch 'refs/heads/main' into clean_beep

This commit is contained in:
2024-12-19 16:22:20 +08:00
3 changed files with 38 additions and 7 deletions

View File

@@ -22,11 +22,11 @@ game:
# addr: /dev/ttyUSB0 # 点位 5 的串口地址 # addr: /dev/ttyUSB0 # 点位 5 的串口地址
pushGroups: # 点位 4 的发卡器配置 pushGroups: # 点位 4 的发卡器配置
- name: gpiochip0 - name: gpiochip0
outOK: 12 outOK: 21
lower: 1 lower: 20
error: 7 error: 16
empty: 8 empty: 12
push: 0 push: 13
reset: 5 reset: 19
pull: 6 pull: 26
readAddr: /dev/ttyUSB0 # 点位 4 的读卡器配置 readAddr: /dev/ttyUSB0 # 点位 4 的读卡器配置

Binary file not shown.

31
todo.md
View File

@@ -30,3 +30,34 @@ echo 0 | sudo tee /sys/class/graphics/fb0/blank
```bash ```bash
ffplay -autoexit -fs -i video.mp4 ffplay -autoexit -fs -i video.mp4
``` ```
### 编译 arm64 架构
```bash
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -o game-driver-arm64 .
```
### J8引脚
```bash
J8:
3V3 (1) (2) 5V
GPIO2 (3) (4) 5V
GPIO3 (5) (6) GND
GPIO4 (7) (8) GPIO14
GND (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND
GPIO22 (15) (16) GPIO23
3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND
GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8
GND (25) (26) GPIO7
GPIO0 (27) (28) GPIO1
GPIO5 (29) (30) GND
GPIO6 (31) (32) GPIO12
GPIO13 (33) (34) GND
GPIO19 (35) (36) GPIO16
GPIO26 (37) (38) GPIO20
GND (39) (40) GPIO21
```