If you put all your code in setup() and have an empty loop() it will do pretty much what you want.
-br