Skip to content

Commit

Permalink
remove scripts update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Oct 23, 2024
1 parent 5da204b commit c8f9b45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,26 @@ video=DSI-1:800x480M@60,rotate=180 # prepend left string! One line!

Test with the PWM clock

Pi3, Pi4 it's pwmchip0 channel 0

```sh
echo 0 > /sys/class/pwm/pwmchip0/export
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 100 > period
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 50 > duty_cycle
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 100000000 > period
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 50000000 > duty_cycle
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 1 > enable
pi@wigglecam-main:/sys/class/pwm/pwmchip0/pwm0 $ echo 0 > enable
```

Pi5 it's pwmchip2 channel 2

```sh
echo 2 > /sys/class/pwm/pwmchip2/export
pi@wigglecam-main:/sys/class/pwm/pwmchip2/pwm0 $ echo 100000000 > period
pi@wigglecam-main:/sys/class/pwm/pwmchip2/pwm0 $ echo 50000000 > duty_cycle
pi@wigglecam-main:/sys/class/pwm/pwmchip2/pwm0 $ echo 1 > enable
pi@wigglecam-main:/sys/class/pwm/pwmchip2/pwm0 $ echo 0 > enable
```

#### Install Primary Node

`pipx install --system-site-packages git+https://github.com/mgineer85/wigglecam.git`
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ repository = "https://github.com/mgineer85/photobooth-wigglecam"
documentation = "https://github.com/mgineer85/photobooth-wigglecam"

[project.scripts]
# wigglecam_uvicorn = "uvicorn node.application:app --host=0.0.0.0 --port=8000 --log-level=debug"
wigglecam_node = "node.__main__:main"
#wigglify = "wigglify.cli:main"
# wigglecam_uvicorn = "uvicorn node.__main__:app --host=0.0.0.0 --port=8000 --log-level=debug"
# wigglecam_node = "node.__main__:main"
# wigglify = "wigglify.cli:main"

[tool.pdm]
version = { source = "file", path = "node/__version__.py" }
Expand Down

0 comments on commit c8f9b45

Please sign in to comment.