https://github.com/tprrt/pwm-ramp-gen
A simple application which generate a continuous PWM signal with a variable duty cycle.
https://github.com/tprrt/pwm-ramp-gen
application pwm riot-os
Last synced: about 1 month ago
JSON representation
A simple application which generate a continuous PWM signal with a variable duty cycle.
- Host: GitHub
- URL: https://github.com/tprrt/pwm-ramp-gen
- Owner: tprrt
- License: gpl-3.0
- Created: 2021-01-09T11:59:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T14:06:53.000Z (over 2 years ago)
- Last Synced: 2024-04-16T03:50:59.710Z (about 2 years ago)
- Topics: application, pwm, riot-os
- Language: C
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://circleci.com/gh/tprrt/pwm-ramp-gen.svg?style=svg
:alt: Circle badge
:target: https://app.circleci.com/pipelines/github/tprrt/pwm-ramp-gen
.. image:: https://sonarcloud.io/api/project_badges/measure?project=tprrt_pwm-ramp-gen&metric=alert_status
:alt: Quality Gate Status
:target: https://sonarcloud.io/dashboard?id=tprrt_pwm-ramp-gen
==================
PWM ramp generator
==================
It is a simple `RIOT-OS`_ application written in Rust which generates a
continuous PWM signal of 1Khz, on the first channel of the first PWM device,
and whose duty cycle increases (then decreases) every 10ms.
.. code-block:: bash
# To pull the submodules' sources
git submodule sync
git submodule update --init --recursive
# To pull the container to cross-compile
podman pull riot/riotbuild
# To build in the container
export BUILD_IN_DOCKER=1
export DOCKER="podman"
export DOCKER_IMAGE=riot/riotbuild:latest
export DOCKER_USER=""
export DOCKER_RUN_FLAGS="--rm -i -t --security-opt seccomp=unconfined --security-opt label=disable --userns=keep-id"
export DOCKER_MAKE_ARGS="-j$(nproc)"
export BOARD=arduino-leonardo
make
----
Use the following command to validate the `circleci`_ pipeline:
.. code-block:: bash
podman run --rm --security-opt seccomp=unconfined --security-opt label=disable -v $(pwd):/data circleci/circleci-cli:alpine config validate /data/.circleci/config.yml --token $TOKEN
-------
Support
-------
If you find this project useful, please consider supporting its development:
- PayPal: `paypal.me/tprrt `_
------------
Contributing
------------
Contributions are welcome! Please see `CONTRIBUTING.rst `_ for guidelines.
.. _circleci: https://circleci.com
.. _RIOT-OS: https://github.com/RIOT-OS/RIOT