Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wish: support GPIO mux #2

Open
rzr opened this issue Jun 27, 2019 · 0 comments
Open

Wish: support GPIO mux #2

rzr opened this issue Jun 27, 2019 · 0 comments

Comments

@rzr
Copy link

rzr commented Jun 27, 2019

As mentionned in
#1

GPIO muxing is lacking, It was needed for edison

If this project is no more maintained:
may this be done in related project that would merge pwm support through sysfs ?

Relate-to: EnotionZ/gpio#60

rzr added a commit to TizenTeam/webthing-node that referenced this issue Jun 27, 2019
It was tested on Intel Edison PWM0 (50 Hz on buzzer)

Note that GPIO12 must be manually configured first, using:

```sh
gpio=12
echo $gpio | sudo tee -a /sys/class/gpio/export
echo out | sudo tee /sys/class/gpio/gpio$gpio/direction
echo mode1 | sudo tee /sys/kernel/debug/gpio_debug/gpio${gpio}/current_pinmux
```

More/Better gpio drivers maybe added later,
for the record 'pwm' one was prefered here
as base for webthing-iotjs (API to be aligned with IoT.js),
but pwm module is lacking muxing support.

It can be used to control servo motors, for more check:

https://social.samsunginter.net/@rzr/102343690505588635#

Relate-to: djdeath/pwm#2
Change-Id: Ia54efc1d3ef232a831e46f324b9f582a772fceec
Signed-off-by: Philippe Coval <p.coval@samsung.com>
mrstegeman pushed a commit to WebThingsIO/webthing-node that referenced this issue Jun 27, 2019
It was tested on Intel Edison PWM0 (50 Hz on buzzer)

Note that GPIO12 must be manually configured first, using:

```sh
gpio=12
echo $gpio | sudo tee -a /sys/class/gpio/export
echo out | sudo tee /sys/class/gpio/gpio$gpio/direction
echo mode1 | sudo tee /sys/kernel/debug/gpio_debug/gpio${gpio}/current_pinmux
```

More/Better gpio drivers maybe added later,
for the record 'pwm' one was prefered here
as base for webthing-iotjs (API to be aligned with IoT.js),
but pwm module is lacking muxing support.

It can be used to control servo motors, for more check:

https://social.samsunginter.net/@rzr/102343690505588635#

Relate-to: djdeath/pwm#2
Change-Id: Ia54efc1d3ef232a831e46f324b9f582a772fceec
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to rzr/webthing-iotjs that referenced this issue Jun 28, 2019
It was tested on Intel Edison PWM0 (50 Hz on buzzer)

Note that GPIO12 must be manually configured first, using:

```sh
gpio=12
echo $gpio | sudo tee -a /sys/class/gpio/export
echo out | sudo tee /sys/class/gpio/gpio$gpio/direction
echo mode1 | sudo tee /sys/kernel/debug/gpio_debug/gpio${gpio}/current_pinmux
```

More/Better gpio drivers maybe added later,
for the record 'pwm' one was prefered here
as base for webthing-iotjs (API to be aligned with IoT.js),
but pwm module is lacking muxing support.

It can be used to control servo motors, for more check:

https://social.samsunginter.net/@rzr/102343690505588635#

Relate-to: djdeath/pwm#2
Change-Id: Ia54efc1d3ef232a831e46f324b9f582a772fceec
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to TizenTeam/webthing-node that referenced this issue Jul 5, 2019
It was tested on Intel Edison PWM0 (50 Hz on buzzer)

Note that GPIO12 must be manually configured first, using:

```sh
gpio=12
echo $gpio | sudo tee -a /sys/class/gpio/export
echo out | sudo tee /sys/class/gpio/gpio$gpio/direction
echo mode1 | sudo tee /sys/kernel/debug/gpio_debug/gpio${gpio}/current_pinmux
```

More/Better gpio drivers maybe added later,
for the record 'pwm' one was prefered here
as base for webthing-iotjs (API to be aligned with IoT.js),
but pwm module is lacking muxing support.

It can be used to control servo motors, for more check:

https://social.samsunginter.net/@rzr/102343690505588635#

Relate-to: djdeath/pwm#2
Change-Id: Ia54efc1d3ef232a831e46f324b9f582a772fceec
Signed-off-by: Philippe Coval <p.coval@samsung.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant