An open API service indexing awesome lists of open source software.

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.

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