SecondBASIC Documentation v3

Home / Command Reference / Sleep2


Description: Pauses code execution for horizontal blank for every <Unit>. If the <TvBlank> option is used, the Sleep command ends at the beginning of the horizontal blank, and if the <TvBlank> option is omitted, the Sleep command will end at the beginning of the displaying period.


Sleep2 <Unit> [, <TvBlank>]

Part Description
<Unit> Required. The interval to pause execution by.
<TvBlank> Optional. Changes the period when the Sleep command ends.


    While 1
        Locate 1,1: Print a
        Sleep2 20