Dlloydev / Wokwi-Chip-Bounce

Bounce Signal Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wokwi-Chip-Bounce

Description

Add Bounce to digital signals

image

image

  • Modes: Off, Rise, Fall, Both (0-3)
  • Duration: 50-5000 microseconds
  • Default control settings can be changed in diagram.json

Usage

To use this chip in your project, include it as a dependency in your diagram.json file:

"dependencies": { "chip-bounce": "github:Dlloydev/Wokwi-Chip-Bounce@1.0.6" }

Then, add the chip to your circuit by adding a chip-scope item to the parts section of diagram.json:

  "parts": {
    ...,
    {
      "type": "chip-bounce",
      "id": "bounce1",
      "top": -37.38,
      "left": -61.6,
      "attrs": { "mode": "3", "microseconds": "1000" }
    },

The actual source code for the chip lives in src/main.c, and the pins are described in chip.json.

Examples

Wokwi_badge Test a PWM signal with bounce added.

License

This project is licensed under the MIT license. See the LICENSE file for more details.

About

Bounce Signal Generator

License:MIT License


Languages

Language:C 100.0%