I had your flag waving program working well in Scratch For Robots with my new PivotPi and Rpi3+. I had to reload NOOBS after a hardware problem.
I followed the PivotPi install instructions like I did the first time and loaded
cd /home/pi sudo curl https://raw.githubusercontent.com/DexterInd/Raspbian_For_Robots/master/upd_script/fetch_pivotpi.sh | bash
It puts the Icons on the desktop but they will not open from the desktop OR the source folder. The lights on the pivotpi are all lit up.
PivotPi does not respond in Python code either.
I tried the instructions to make a new card to use Raspbian for Robots but it loads on the USB and will not open when I turn on the RPi. I have tried this from 3 different mirrors and Google Drive and it wont open.
When I had to redo my RPI SD card and loaded NOOBS I saw it didnt have all the OS that I had with the factory card. I dont think it has Stretch - is that the problem?
I made yet another SD with Raspbian and no luck either. I am so frustrated!