Download data/examples/13wire/masterr.bas from introvoyz041/tinybasic: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/13wire/masterr.bas
- Command line
-
hf download hf://datasets/introvoyz041/tinybasic/data/examples/13wire/masterr.bas
-
curl -L -o masterr.bas https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/13wire/masterr.bas
305 Bytes
| 10 REM "Master reader from Arduino examples" | |
| 20 REM "" | |
| 100 REM "the setup()" | |
| 110 PRINT "Open master mode on port 8" | |
| 120 OPEN &7, 8 | |
| 200 REM "the loop()" | |
| 210 REM "request 6 byte from the slave" | |
| 220 FOR I | |
| 230 @S=0 | |
| 240 INPUT &7, #6, A$ | |
| 250 IF @S THEN PRINT "Data error" ELSE PRINT A$ | |
| 260 DELAY 500 | |
| 270 NEXT | |