-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWAIT.txt
30 lines (25 loc) · 939 Bytes
/
WAIT.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
WAIT
IchigoJam BASIC
IchigoJam BASIC RPi
IchigoJam PC 0.1 beta 4~
-----------------------------------------------------------
[Function]
Stop processing for a certain period of time.
[Command format]
WAIT <time>
WAIT <time> [, <dive>] (1.2 beta 7 ~)
[Example]
WAIT 60
WAIT 60,0
[Commentary]
Stop processing for the specified time.
<time> is about 1 second in NTSC version, about 1 second by 50 in PAL version,
The range is from 1 to 32767. (NTSC version in Japan, PAL version is from 1.2.2)
Added since 1.1 beta4, It is affected by VIDEO clock down.
With VIDEO 0,10 then WAIT 60 will be about 10 seconds.
By putting 0 in <dive> from 1.2 beta 7,
Suppresses current consumption and keeps memory and pin states deep sleep.
IchigoJam BASIC RPi does not support Deep Sleep.
By putting a negative value at <time> from 1.2 beta 12,
It will wait for scanning line × -1 minute.
-262 is 1 frame (1/69 seconds).