Advertisement
gabbyshimoni

Example2=090518

May 9th, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. int cont = 5;
  2. void setup() {
  3.   Serial.begin(9600);
  4. }
  5. void loop() {
  6.   if (cont <5 ) {
  7.     Serial.println("start");
  8.     cont+=2;
  9.     for (int i = 1 ; i <= 30; i *= 2) {
  10.       int k = i;
  11.       if (k % 2 > 0) {
  12.         Serial.println(i);
  13.         i = 60.0;
  14.       }
  15.     }
  16.   }
  17.   else{
  18.     cont-=2;
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement