From e861af8d1ae10d6b7e290ceb2a631da0f18ca8de Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Sat, 16 Jan 2021 13:53:13 +0900 Subject: [PATCH 1/2] Update docs on how to install with Raspberry Pi 4 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f4bf2e..1a6df0e 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ rtmouseをインストールして不具合が出た場合のみ以下の設定 Edit [`rtmouse.c`](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54) to change the defined value `RASPBERRYPI` from '2' to '4'. Raspberry Pi 4ではCPUのレジスタがそれまでのRaspberry Piとは異なります([issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。 -Raspberry Pi 4で本ドライバを使用する際には`rtmouse.c`の以下の行(2020年4月13日現在の最新版のv2.1.0では[54行目](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54))を`RASPBERRYPI 4`に書き換えて手動でビルドする必要があります。 +Raspberry Pi 4で本ドライバを使用する際には`rtmouse.c`の以下の行(2020年4月13日現在の最新版のv2.1.0では[54行目](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54))を`RASPBERRYPI 4`に書き換えてビルドする必要があります。 +※付属の[build_install.bash](./utils/build_install.bash)を使用する場合はRaspberry Piのモデルを自動で判別して[`rtmouse.c`](./src/drivers/rtmouse.c)を[必要に応じて自動書き換え](https://github.com/rt-net/RaspberryPiMouse/blob/a9af4fa2b2a8e34c0f93a6ce5cf88ebd50ff39c2/utils/build_install.raspi4ubuntu.bash#L13-L14)しています。 ```c // define the Raspberry Pi version here From 13426734cc3a68332874774cbf3faa81e4650ac2 Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Mon, 18 Jan 2021 11:39:42 +0900 Subject: [PATCH 2/2] Update README.md Co-authored-by: Shota Aoki --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a6df0e..aada6ba 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Edit [`rtmouse.c`](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a Raspberry Pi 4ではCPUのレジスタがそれまでのRaspberry Piとは異なります([issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。 Raspberry Pi 4で本ドライバを使用する際には`rtmouse.c`の以下の行(2020年4月13日現在の最新版のv2.1.0では[54行目](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54))を`RASPBERRYPI 4`に書き換えてビルドする必要があります。 -※付属の[build_install.bash](./utils/build_install.bash)を使用する場合はRaspberry Piのモデルを自動で判別して[`rtmouse.c`](./src/drivers/rtmouse.c)を[必要に応じて自動書き換え](https://github.com/rt-net/RaspberryPiMouse/blob/a9af4fa2b2a8e34c0f93a6ce5cf88ebd50ff39c2/utils/build_install.raspi4ubuntu.bash#L13-L14)しています。 +※[`./utils/build_install.bash`](./utils/build_install.bash)を実行すると、Raspberry Piのモデルに合わせて[`rtmouse.c`](./src/drivers/rtmouse.c)が[自動で書き換わります](https://github.com/rt-net/RaspberryPiMouse/blob/a9af4fa2b2a8e34c0f93a6ce5cf88ebd50ff39c2/utils/build_install.raspi4ubuntu.bash#L13-L14)。 ```c // define the Raspberry Pi version here