How do i make the buzzer sound when a notification from phone appears on my tinyscreen arduino using bluetooth.
I am able to connect to bluetooth and make the buzzer sound, but I'm not sure how to activate the buzzer using bluetooth when a notification is send from the phone to the tiny screen. I have a picture of my tiny screen attached below as well.
https://cdn.shopify.com/s/files/1/1125/2198/files/SmartWatchANCS_ST.zip
Buzzer code:
const int buzzer = 12; //buzzer to arduino pin 12( MISO)
void setup(){
pinMode(buzzer, OUTPUT); // Set buzzer - pin 12 as an output
}
void loop() {
int notes[10]={261, 277, 294, 311, 330, 349, 370, 392, 415, 440};
// mid C C# D D# E F F# G G# A
for(int i = 0; i < 10; i++){
tone(12, notes*); //accesses spots on the array.*
- delay(1000);*
}
}
tiny screen.zip (93.8 KB)