Created
January 27, 2013 06:51
-
-
Save pureexe/4647113 to your computer and use it in GitHub Desktop.
เตื่อนเมื่ออุณหภูมิสูงกว่า 30c พลอย + แนง
This file contains hidden or 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
| /*** | |
| เทอร์โมมิเตอร์ต่อ 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