Skip to content

Instantly share code, notes, and snippets.

@pureexe
Created January 27, 2013 06:51
Show Gist options
  • Select an option

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

Select an option

Save pureexe/4647113 to your computer and use it in GitHub Desktop.
เตื่อนเมื่ออุณหภูมิสูงกว่า 30c พลอย + แนง
/***
เทอร์โมมิเตอร์ต่อ PA1
ลำโพงต่อ PD1
***/
#include<analog.h>
#include<sound.h>
int main(){
while(1)
{
if(analog(1)>465)
beep_d(1);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment