Skip to content

Instantly share code, notes, and snippets.

@pureexe
Last active December 11, 2015 19:08
Show Gist options
  • Select an option

  • Save pureexe/4646608 to your computer and use it in GitHub Desktop.

Select an option

Save pureexe/4646608 to your computer and use it in GitHub Desktop.
สัญญาณกันขโมยของลูกปลา ฉบับ ง่ายโคตรๆๆ
/***
Project : PaPo
ลำโพง ให้ต่อ PD1 สวิตต่อ PA1
***/
#include<in_out.h>
#include<sound.h>
int main()
{
bool isactive=false;
while(1)
{
if(!in_a(1))
isactive=true;
if(isactive){
beep_d(1);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment