This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//05_distance_led | |
//近づいた回数をカウントして5回ごとに、光る | |
//SchooMyとかいてあるところまですすもう | |
#define echoPin 19 | |
#define trigPin 18 | |
#define ledPin 10 //OUTB | |
#define ON LOW | |
#define OFF HIGH | |
double Duration = 0; //受信した間隔 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//04_hikari_speaker | |
//暗くなったら、1回だけ鳴る | |
//SchooMyとかいてあるところまですすもう | |
#define cdsPin 5 | |
#define SPEAKER 10 | |
#define do 262 | |
#define re 294 | |
#define mi 330 | |
#define fa 349 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//04_hikari_led | |
//暗くなったら1回だけ光る | |
//SchooMyとかいてあるところまですすもう | |
#define cdsPin 5 | |
#define ledPin 10 | |
#define ON LOW | |
#define OFF HIGH | |
int count = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//04_distance_led | |
//近づいたら1回だけ光る | |
//SchooMyとかいてあるところまですすもう | |
#define echoPin 19 | |
#define trigPin 18 | |
#define ledPin 10 //OUTB | |
#define ON LOW | |
#define OFF HIGH | |
int count = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//04_distance_speaker | |
//近づいたら1回だけ鳴る | |
//SchooMyとかいてあるところまですすもう | |
#define echoPin 19 | |
#define trigPin 18 | |
#define SPEAKER 10 | |
#define do 262 | |
#define re 294 | |
#define mi 330 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//03_hikari_speaker | |
//暗くなってから5秒たつと鳴り、その前に明るくなったら鳴らない | |
//SchooMyとかいてあるところまですすもう | |
#define cdsPin 5 | |
#define SPEAKER 10 | |
#define do 262 | |
#define re 294 | |
#define mi 330 | |
#define fa 349 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//03_hikari_led | |
//暗くなってから5秒たつと光り、その間に明るくなったら光らない | |
//SchooMyとかいてあるところまですすもう | |
#define cdsPin 5 | |
#define ledPin 10 | |
#define ON LOW | |
#define OFF HIGH | |
int count = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//03_distance_speaker | |
//近づいて5秒後に音が鳴り、その前に離れたら鳴らない | |
//SchooMyとかいてあるところまですすもう | |
#define echoPin 19 | |
#define trigPin 18 | |
#define SPEAKER 10 | |
#define do 262 | |
#define re 294 | |
#define mi 330 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//03_distance_led | |
//近づいて5秒後に光り、その前に離れたら光らない | |
//SchooMyとかいてあるところまですすもう | |
#define echoPin 19 | |
#define trigPin 18 | |
#define ledPin 10 | |
#define ON LOW | |
#define OFF HIGH | |
double Duration = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//02_hikari_speaker | |
//明るさによって違う音が鳴る | |
//SchooMyとかいてあるところまですすもう | |
#define cdsPin 5 | |
#define SPEAKER 10 | |
#define do 262 | |
#define re 294 | |
#define mi 330 | |
#define fa 349 |