Git Product home page Git Product logo

Comments (1)

PaulStoffregen avatar PaulStoffregen commented on August 24, 2024

The answer is: it depends.

First, this isn't possible unless you modify the AltSoftSerial code. AltSoftSerial simply doesn't offer this feature. But it is open source, so if you have the time and skill to edit the code, perhaps you can do it. Maybe you'll even share for others who might want it?

This message is the one and only thing I will do to help. If you really want this, you have dig into the code and do it yourself.

Second, this can only work on chips where the timer has at least 3 compare channels. ATMEGA328P (used on Arduino Uno & Nano) have only 2 compare registers. One is used for the output signal and another is used for a timeout, so you must have at least a 3rd compare to generate another signal.

The basic idea would be to configure the 3rd compare channel to generate an output signal. If the hardware supports opposite polarity (depends on which chip you use), then the code might be as simple as merely writing the same data to the 3rd compare register. Maybe? There could be other details. It really depends on the timer compare unit details for whatever chip you're using.

from altsoftserial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.