#include <CuteBuzzerSounds.h>
/*
CURRENT SOUND OPTIONS:
(PT-BR)OPÇÕES ATUAIS DE SONS:
S_CONNECTION S_DISCONNECTION S_BUTTON_PUSHED
S_MODE1 S_MODE2 S_MODE3
S_SURPRISE S_OHOOH S_OHOOH2
S_CUDDLY S_SLEEPING S_HAPPY
S_SUPER_HAPPY S_HAPPY_SHORT S_SAD
S_CONFUSED S_FART1 S_FART2
S_FART3 S_JUMP 20
*/
#define BUZZER_PIN 11
void setup()
{
cute.init(11);
Serial.begin(9600);
}
unsigned long previousTime = 999;
void loop()
{
// onHalt = true tone
// tone(BUZZER_PIN,8500);
// delay(180);
// tone(BUZZER_PIN,3000);
// delay(200);
// tone(BUZZER_PIN,2500);
// delay(200);
// tone(BUZZER_PIN,4000);
// delay(200);
// noTone(BUZZER_PIN);
// on weight received successfully
tone(BUZZER_PIN,4000);
delay(100);
noTone(BUZZER_PIN);
delay(200);
tone(BUZZER_PIN,4000);
delay(150);
noTone(BUZZER_PIN);
// if (millis() - previousTime > 10000) { // Scalereset sound
// previousTime = millis();
// tone(BUZZER_PIN, 2000); // Pin 11, 2000Hz frequency, 300ms duration
// delay(130);
// noTone(BUZZER_PIN);
// tone(BUZZER_PIN, 1800); // Pin 11, 1000Hz frequency, 150ms duration
// delay(130);
// noTone(BUZZER_PIN);
// tone(BUZZER_PIN, 1500); // Pin 11, 1000Hz frequency, 150ms duration
// delay(100);
// noTone(BUZZER_PIN);
// tone(BUZZER_PIN, 2000); // Pin 11, 1000Hz frequency, 150ms duration
// delay(50);
// noTone(BUZZER_PIN);
// }
// if (millis() - previousTime > 2500) { // when weightLock breaked
// previousTime = millis();
// tone(BUZZER_PIN, 2000); // Pin 11, 2000Hz frequency, 300ms duration
// delay(180);
// noTone(BUZZER_PIN);
// tone(BUZZER_PIN, 1000); // Pin 11, 1000Hz frequency, 150ms duration
// delay(100);
// noTone(BUZZER_PIN);
// }
// delay(5000);
// if (millis() - previousTime > 2500) { // when weightLock initiated
// previousTime = millis();
// tone(BUZZER_PIN, 1000); // Pin 11, 1000Hz frequency, 150ms duration
// delay(180);
// noTone(BUZZER_PIN);
// tone(BUZZER_PIN, 2000); // Pin 11, 2000Hz frequency, 300ms duration
// delay(100);
// noTone(BUZZER_PIN);
// }
// if (millis() - previousTime > 2500) { // when negative/zero weight detected
// previousTime = millis();
// tone(BUZZER_PIN, 1100); // Pin 11, 1000Hz frequency, 150ms duration
// delay(130);
// noTone(BUZZER_PIN);
// delay(130);
// tone(BUZZER_PIN, 1100); // Pin 11, 2000Hz frequency, 300ms duration
// delay(130);
// noTone(BUZZER_PIN);
// }
Serial.println((millis()/1000.00));
delay(2000);
}