Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Timer problems on Leonardo/Micro #5

@ducktaperules

Description

@ducktaperules

it seems that i cant compile for Leonardo/Micro based on 32u4.

i get errors:

C:\...\libraries\sbus-master\sbus.cpp:104:5: error: 'TCNT2' was not declared in this scope

     TCNT2 = 0;

     ^

C:\...\libraries\sbus-master\sbus.cpp:112:5: error: 'TIFR2' was not declared in this scope

     TIFR2 |= 1 << OCF2A;

     ^

C:\...\libraries\sbus-master\sbus.cpp:112:19: error: 'OCF2A' was not declared in this scope

     TIFR2 |= 1 << OCF2A;

                   ^

After some research it seems that there is no timer 2 on the 32u4.

Is it possible to move this to another timer?
If so which pins would we need to be used?

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