Skip to content

tone was not declared in this scope #1720

Closed
@Master811129

Description

@Master811129

Hardware:

Board: ESP32 Dev Module
Core Installation/update date: 11/jul/2017
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 115200

Description:

when i use tone function the arduino console says:
"tone was not declared in this scope."
if the esp32 core doesn't have tone function please add it.
thanks.

Sketch:

#include <Arduino.h>

void setup()
{
 pinMode(25,OUTPUT);
}

void loop() 
{
  tone(25,200);
  delay(1000);
  tone(25,800);
  delay(1000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions