#Jay Summet # #Released to the public domain, Sep 2007. #This code takes 42 pictures and shows them one after another. #We demonstrate 3 different ways to do the same thing. from myro import * initialize("/dev/rfcomm1") def pictureTaker(n): picture = takePicture("gray") show(picture) print n if ( n < 41 ): pictureTaker(n+1) pictureTaker(0) """ n = 0 while ( n < 42 ): picture = takePicture("gray") show(picture) print n print picture n = n + 1 """ """ for picCounter in range(42): picture = takePicture("gray") show(picture) print picCounter print picture """