Skip to content

Add TIMERB3 to megaavr #58

Open
Open
@KHeintz

Description

@KHeintz

With the additional timer TIMERB3 the servo library also works for MegaCorex and ATMega4809.
Advantage over the MegaCorex Servo library with this library is the setting of the frame rate works.
To ServoTimers.h add

#if defined(SERVO_USE_TIMERB3)
  &TCB3;
#endif

Servo.cpp add

#elif defined(SERVO_USE_TIMERB3)
ISR(TCB3_INT_vect)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions