Skip to content

Doesn't work in an ISR #5

Description

@avandalen

I want a LED to turn on for 10ms every time when I call this function:

volatile void ledA1Pulse(int ms)
{ ledA1.turnON();
   ledA1.turnOFF(ms);
}
volatile ezLED ledA1(testPinA1);

loop()
{ ledA1.loop();
}

It works fine without using a ISR.
But not if the function is in an ISR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions