As per project 5 task 7 , i have tried changing the frequency of the buzzer. But how can i make a simple industrial alarm which automatically changes frequecy from 225 to 0 and thne again till 225 in a loop or something

Here is the current code which i have.

> <!DOCTYPE html>
> <html>
>     <head>
>         <title>Bolt IoT Platform</title>
>         <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
>         <script>
>         setKey('{{ApiKey}}','{{Name}}');
>         </script>
>     </head>
>     <body>
>         <center>
>         <button onclick="analogWrite(0, 250);">ON</button>
>         <button onclick="digitalWrite(0, 'LOW');">OFF</button>
>         </center>
>     </body>
> </html>

I want someting like a lop in which the frequecy goes like 250, 249, 248…2, 1, 2, 3, ,4 …249, 250

You can write a JavaScript code for it using for loop or while loop and then add that code to your current html code. Or you can use python.
I hope this will help you.
Thankyou.