Download data/examples/05control/forloop.bas from introvoyz041/tinybasic: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/05control/forloop.bas
- Command line
-
hf download hf://datasets/introvoyz041/tinybasic/data/examples/05control/forloop.bas
-
curl -L -o forloop.bas https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/05control/forloop.bas
388 Bytes
| 10 REM "ForLoopIterations from Arduino examples" | |
| 20 T=100 | |
| 100 REM "setup() put your setup code here, to run once:" | |
| 110 FOR P=2 TO 7 | |
| 120 PINM P, 1 | |
| 130 NEXT | |
| 200 REM "loop() put your main code here, to run repeatedly:" | |
| 210 FOR I | |
| 220 FOR P=2 TO 7 | |
| 230 DWRITE P, 1 | |
| 240 DELAY 100 | |
| 250 DWRITE P, 0 | |
| 260 NEXT | |
| 270 FOR P=7 TO 2 STEP -1 | |
| 280 DWRITE P, 1 | |
| 290 DELAY 100 | |
| 300 DWRITE P, 0 | |
| 310 NEXT | |
| 320 NEXT | |