Here. The @LOOP...GOTO @LOOP is necessary otherwise SmileBasic will just end program without waiting for your button press. VSYNC is to slow SmileBasic down to human speed.