CCCPaste

impossible_project rev_01

/********* Pleasedontcode.com **********

	Pleasedontcode thanks you for automatic code generation! Enjoy your code!

	- Terms and Conditions:
	You have a non-exclusive, revocable, worldwide, royalty-free license
	for personal and commercial use. Attribution is optional; modifications
	are allowed, but you're responsible for code maintenance. We're not
	liable for any loss or damage. For full terms,
	please visit pleasedontcode.com/termsandconditions.

	- Project: impossible_project
	- Source Code compiled for: Arduino Uno
	- Source Code created on: 2023-11-12 12:26:14
	- Source Code generated by: yuvraj

********* Pleasedontcode.com **********/
/****** DEFINITION OF LIBRARIES *****/
#include 
#include  // Library for playing tones with PWM

/****** SYSTEM REQUIREMENT 1 *****/
/* sing a song at boot in Arduino UNO */

/****** FUNCTION PROTOTYPES *****/
void setup(void);
void loop(void);

/***** DEFINITION OF PWM OUTPUT PINS *****/
const uint8_t speak_PIN_D3 = 3; // Define the PWM output pin for the speaker

void setup(void)
{
  // put your setup code here, to run once:
  pinMode(speak_PIN_D3, OUTPUT); // Set the speaker pin as an output

  // Play a song at boot
  toneAC(speak_PIN_D3, 440, 1000); // Play a 440Hz tone for 1 second
  delay(1000); // Wait for 1 second
  toneAC(speak_PIN_D3, 494, 1000); // Play a 494Hz tone for 1 second
  delay(1000); // Wait for 1 second
  toneAC(speak_PIN_D3, 523, 1000); // Play a 523Hz tone for 1 second
  delay(1000); // Wait for 1 second
  noToneAC(); // Stop playing the tone
}

void loop(void)
{
  // put your main code here, to run repeatedly:

}