Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************
- FILE: DEMO_Track Sensor.pde
- PURPOSE: Track sensor test sketch for Arduino
- Created by Stan Lee from Iteadstuduino
- E-mail: Lizq@iteadstudio.com
- DATE: 2013/4/20
- *******************************************/
- const int DSIGNAL = 2;
- const int buzzer= 3;
- void setup()
- {
- pinMode(DSIGNAL, INPUT);
- }
- void loop()
- {
- int DsignalState = digitalRead(DSIGNAL);
- if(DsignalState)
- {
- ¡¡¡¡digitalWrite(buzzer,LOW);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement