Skip to content

Doesn't work with Arduino Nano Every #28

@waltribeiro

Description

@waltribeiro

This example code works with the Arduino Uno:

#include <Tone.h>

Tone tone1;

void setup()
{
  tone1.begin(13);
  tone1.play(NOTE_A4);
}

void loop()
{
}

But I get this error below with the Arduino Nano Every (probably because of differences between ATmega328P and the ATmega4809).

Tone.cpp:560:37: error: 'OCIE2A' was not declared in this scope
       returnvalue = (TIMSK2 & (1 << OCIE2A));

Any help?

Screenshot 2024-03-08 at 5 42 30 AM

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