Advertisement
waravutbutrat

IPST ไฟวิ่งกลับไปกลับมา

Jun 25th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <ipst.h>
  2. int x=1;
  3. void setup(){
  4.   }
  5. void loop()
  6. {    
  7. while(x<128){
  8.   LED8(30,x);
  9.   x=x*2;
  10.   delay(500);
  11.   }
  12.   while(x>1){
  13.   LED8(30,x);
  14.   x=x/2;
  15.   delay(500);
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement