Skip to content
Snippets Groups Projects
Commit 23e8f308 authored by Zihao Lin's avatar Zihao Lin
Browse files

week_08

parent 9f33d0ec
No related branches found
No related tags found
No related merge requests found
Pipeline #153638 passed
#define BUZZER 16
void setup()
{
pinMode(BUZZER,OUTPUT);
}
void loop()
{
int i=0;
for(i=0;i<80;i++)
{
digitalWrite(BUZZER,HIGH);
delay(20);
digitalWrite(BUZZER,LOW);
delay(1);
}
for(i=0;i<100;i++)
{
digitalWrite(BUZZER,HIGH);
delay(2);
digitalWrite(BUZZER,LOW);
delay(2);
}
}
File added
File added
......@@ -232,6 +232,17 @@
The program is then downloaded to the board for verification.<br/>
<iframe width="900" height="506" src="https://www.youtube.com/embed/OKmPvuV6oHw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe><br/>
</p>
<div class="text-center">
<div class="section-title center" >
<h2><strong>File Download</strong></h2>
<div class="line">
<hr>
</div>
</div>
</div>
<p> <a href="Files/week_08/Buzzer.ino">Buzzer</a> </p>
<p> <a href="Files/week_05/LED-RGB.zip">LED-RGB</a> </p>
<p> <a href="Files/week_05/LED-Keil.zip">LED-Keil</a> </p>
</div>
</div>
<!-- Testimonials Section
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment