Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cont = 5;
- void setup() {
- Serial.begin(9600);
- }
- void loop() {
- if (cont <5 ) {
- Serial.println("start");
- cont+=2;
- for (int i = 1 ; i <= 30; i *= 2) {
- int k = i;
- if (k % 2 > 0) {
- Serial.println(i);
- i = 60.0;
- }
- }
- }
- else{
- cont-=2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement