Advertisement
Jaturapad

IPST Switch Input Example

Jun 25th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <ipst.h>
  2. void setup(){
  3. //   OK();
  4. }
  5. void loop()
  6. {
  7.  
  8.   if(!in(24)&&!in(27)){
  9.     sound(17,2000,100);  out(29,1);  out(30,1);
  10.   }
  11.   else if(!in(24)){
  12.     sound(17,1000,100);  out(29,1);  out(30,0);
  13.   }
  14.   else if(!in(27)){
  15.     sound(17,1500,100);  out(29,0);  out(30,1);
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement