Skip to content

It's about 4x too fast #3

@paul35621

Description

@paul35621

I'm trying a simple example on my Arduino Mega 2560.
Every second an 'a' should be send via the serial. But it happens about 4 times a second.
Same when I try timer 3.

#include "Timer1.h"

void setup ()
{
    // Set up serial connection
    Serial.begin(9600);
    while (!Serial) {}
  
    // Start timer
    startTimer1(1000 * 1000);
}

void loop () {}

ISR(timer1Event)
{
    Serial.write('a');
}

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