Skip to content

Commit ea65a6e

Browse files
committed
Docs.
1 parent fbdd79b commit ea65a6e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,22 @@ dependencies of LEADS for you.
495495
bash "setup.sh$(wget -O setup.sh https://raw.githubusercontent.com/ProjectNeura/LEADS/main/scripts/setup.sh)" && rm setup.sh || rm setup.sh
496496
```
497497

498-
This will create a shortcut to save you from typing `python-leads -m leads_vec ...`, instead, you will just need to call
499-
`leads-vec ...`.
498+
#### GPIOZero Compatibility
499+
500+
If you are using a GPIO board that is not a Raspberry Pi, you need to set the environment variable
501+
`GPIOZERO_PIN_FACTORY` to `mock`.
502+
503+
```shell
504+
export GPIOZERO_PIN_FACTORY=mock
505+
```
506+
507+
If you have registered the Systemd service, this line should be added to "leads-vec.service.sh" as well.
508+
509+
```shell
510+
# adjust the arguments according to your needs
511+
export GPIOZERO_PIN_FACTORY=mock
512+
leads-vec -c /usr/local/leads/config.json run
513+
```
500514

501515
### Python
502516

0 commit comments

Comments
 (0)