From e7773c88e3dd23b45ea66eef58df20f5be2caaef Mon Sep 17 00:00:00 2001 From: mapleafgo Date: Thu, 19 Dec 2024 12:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E8=84=9A=E5=8F=8A=E5=85=B6=E4=BA=A4?= =?UTF-8?q?=E5=8F=89=E7=BC=96=E8=AF=91=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yml | 14 +++++++------- todo.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/config.yml b/config.yml index fb3c1cb..bc4ffda 100755 --- a/config.yml +++ b/config.yml @@ -22,11 +22,11 @@ game: # addr: /dev/ttyUSB0 # 点位 5 的串口地址 pushGroups: # 点位 4 的发卡器配置 - name: gpiochip0 - outOK: 12 - lower: 1 - error: 7 - empty: 8 - push: 0 - reset: 5 - pull: 6 + outOK: 21 + lower: 20 + error: 16 + empty: 12 + push: 13 + reset: 19 + pull: 26 readAddr: /dev/ttyUSB0 # 点位 4 的读卡器配置 \ No newline at end of file diff --git a/todo.md b/todo.md index 142794d..20bb930 100644 --- a/todo.md +++ b/todo.md @@ -30,3 +30,34 @@ echo 0 | sudo tee /sys/class/graphics/fb0/blank ```bash 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 +``` +