Skip to content

Commit

Permalink
Switch to more specific device names
Browse files Browse the repository at this point in the history
Not sure if this is better or not
  • Loading branch information
awwaiid committed Dec 19, 2024
1 parent 4930c4f commit b3bef06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Then you have to ssh over and run it. Here is how to install and run (run these
# Make it executable after the initial copy
chmod +x ./ghostwriter

./ghostwriter --help # Get the options
./ghostwriter text-assist # Start a text/keyboard-replying session
./ghostwriter --help # Get the options
./ghostwriter # Start a text/keyboard-replying session
```

Draw some stuff on your screen, and then trigger the assistant by *touching/tapping the upper-right corner with your finger*. In the ssh session you'll see other touch-detections and there is a log of what happens while it is processing. You should see some dots drawn during processing and then a typewritten or drawn response!
Expand Down Expand Up @@ -151,7 +151,7 @@ Draw some stuff on your screen, and then trigger the assistant by *touching/tapp
## Development

```sh
# Initial dependencies install (also ... rust)
# Initial dependencies install (also ... rust, which I get via asdf)
rustup target add armv7-unknown-linux-gnueabihf
sudo apt-get install gcc-arm-linux-gnueabihf
cargo install cross
Expand Down
2 changes: 1 addition & 1 deletion src/pen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Pen {
let device = if no_draw {
None
} else {
Some(Device::open("/dev/input/event1").unwrap())
Some(Device::open("/dev/input/touchscreen0").unwrap())
};

Self { device }
Expand Down
2 changes: 1 addition & 1 deletion src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ impl Touch {
let device = if no_touch {
None
} else {
Some(Device::open("/dev/input/event2").unwrap())
Some(Device::open("/dev/input/by-path/platform-30a40000.i2c-event").unwrap())
};

Self { device }
Expand Down

0 comments on commit b3bef06

Please sign in to comment.