Coder Social home page Coder Social logo

wimleers / flexitimer2 Goto Github PK

View Code? Open in Web Editor NEW
65.0 8.0 50.0 204 KB

Arduino library to use timer 2 with a configurable resolution. Based on MsTimer2 by Javier Valencia. Written for the project associated with the "Mobile & Pervasive Computing" course at Hasselt University in Belgium.

C++ 88.28% Processing 11.72%

flexitimer2's Introduction

flexitimer2's People

Contributors

paulstoffregen avatar wimleers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flexitimer2's Issues

AtMega 2560 Unsupported

The Arduino Mega has been revised and now uses an ATmega2560. This processor is not supported by FlexiTimer2. In my test, I was unable to get the callback function to execute after calling set and start.

Nano Every support

Hey, great library. Any chance of getting an update for the Nano Every. We are trying to do PWM on a digital pin (A1) and while the AnyPWM code works gfreat on an Uno, a Nano Every is an unsupported CPU type.

multiple timer

can u use 2 timer for multiple functions. for example blink1- 1000 ms blink 2 - 5000 ms
thanks

Interrupt appears to be fired straight after Start() is called

Hi,

The interrupt seems to be triggered immediately after start() is called.

My work around is to have add a global

volatile bool isResetting=false;

Then in start() set
isResetting=true;

and in the ISR change the code so that overflow is only called if not restting

if (isResetting)
{
    isResetting=false;
    return;
}
else
{
    FlexiTimer2::_overflow();
}

Timer locks up arduino

Hej

I using flexitimer2 with 1000ms resolution.
I am also having a WiFLy shield.

I suspect that the timer is locking up the arduino sketch.

Is there any way I can test that this is the case?

AtMega 2560 Unsupported

The Arduino Mega has been revised and now uses an ATmega2560. This processor is not supported by FlexiTimer2.

Add Arduino Due support

I'd like to send in PR's, but I'd need some pointers to get started: why doesn't it work on the Due?

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.