The for:loops as written seem intended to vary thisPin from 0 to 7 while turning them on & off.
Only D2 is declared as an output tho, so the digitalWrite to 0,1,3,4,5,6,7 will just turn the internal pullup resistors off & on.
The for:loops as written seem intended to vary thisPin from 0 to 7 while turning them on & off.
Only D2 is declared as an output tho, so the digitalWrite to 0,1,3,4,5,6,7 will just turn the internal pullup resistors off & on.